if ( DataSetCacheManager.getInstance( ).needsToCache( dataSetDesign,
if ( getDataSetCacheManager( ).needsToCache( dataSetDesign,
	private void configureDataSetCache( IQueryDefinition querySpec,			Map appContext, Scriptable scope ) throws DataException	{				if ( querySpec == null )			return;		String queryResultID = querySpec.getQueryResultsID( );		if ( queryResultID != null )			return;		String dataSetName = querySpec.getDataSetName( );		IBaseDataSetDesign dataSetDesign = this.dataEngine.getDataSetDesign( dataSetName );		if ( dataSetDesign == null )			return;		if ( DataSetCacheManager.getInstance( ).needsToCache( dataSetDesign,				DataSetCacheUtil.getCacheOption( dataEngine.getContext( ),						appContext ),				dataEngine.getContext( ).getCacheCount( ) ) == false )			return;				Collection parameterHints = null;				IBaseDataSourceDesign dataSourceDesign = null;		DataSourceRuntime dsRuntime = this.dataEngine.getDataSourceRuntime( dataSetDesign.getDataSourceName( ) );		if ( dsRuntime != null )		{			dataSourceDesign = dsRuntime.getDesign( );			DataSetRuntime dataSet = DataSetRuntime.newInstance( dataSetDesign,					null );			parameterHints = new ParameterUtil( null,					dataSet,					this.queryDefn,					scope ).resolveDataSetParameters( true );		}		DataSetCacheManager.getInstance( )				.setDataSourceAndDataSet( dataSourceDesign,						dataSetDesign,						parameterHints );		if ( dataEngine.getContext( ).getCacheOption( ) == DataEngineContext.CACHE_USE_ALWAYS )		{			DataSetCacheManager.getInstance( )					.setAlwaysCacheRowCount( dataEngine.getContext( )							.getCacheCount( ) );		}		DataSetCacheManager.getInstance( )				.setCacheOption( DataSetCacheUtil.getCacheOption( dataEngine.getContext( ),						appContext ) );	}