title: How get org.olap4j.metadata.Cube from Mondrian OlapConnection
body: <p>I develop the web application with Mondrian OLAP engine with Olap4j and should present/display data to user.
  From Java code i create OlapConnection  and try get all cubes from database.</p>
  
  <pre><code>OlapConnection c = (OlapConnection) DriverManager.getConnection(connStr);
  OlapDatabaseMetaData  md = c.getMetaData();
  ResultSet cubes = (Cube)md.getCubes("wdi", "", "wdi");
  </code></pre>
  
  <p>But i have only ResultSet type,  how i can get all cubes by type org.olap4j.metadata.Cube?
  Thanks for any help.</p>