chart, table, olapModel);
// stores current analysis information on session
session.setAttribute("analysisBean", analysis);
// retrieves Mondrian connection
ScriptableMondrianDrillThrough smdt = (ScriptableMondrianDrillThrough) olapModel.getExtension("drillThrough");
Connection mondrianConnection = smdt.getConnection();
// retrieves CacheControl object
CacheControl cacheControl = mondrianConnection.getCacheControl(null);
// retrieves the MDX query
MdxQuery mdxQuery = (MdxQuery) olapModel.getExtension("mdxQuery");
Query mondrianQuery = mondrianConnection.parseQuery(mdxQuery.getMdxQuery());