IQueryDefinition query = (IQueryDefinition)mapResultSetToQuery.get( resultSetName ); assert query != null; validateSelectedColumns( query );
ReportItemDesign reportItem = (ReportItemDesign)mapResultSetToReportItem .get( resultSetName ); assert reportItem != null; validateSelectedColumns( reportItem );
	private IExtractionResults extractByResultSetName( ) throws EngineException	{		assert resultSetName != null;		assert executionContext.getDataEngine() != null;				if( isMetaDataPrepared == false )		{			prepareMetaData( );		}		DataEngine dataEngine = executionContext.getDataEngine().getDataEngine();		try		{			IQueryDefinition query = (IQueryDefinition)mapResultSetToQuery.get( resultSetName );			assert query != null;			validateSelectedColumns( query );						IQueryResults queryResults = dataEngine.getQueryResults( resultSetName );			assert queryResults.getResultIterator() != null;			 			currentResult = new ExtractionResults( queryResults.getResultIterator() 					, selectedColumns, getScriptExpressions( query.getRowExpressions()) );			return currentResult;		}		catch ( BirtException e )		{			e.printStackTrace( );		}		return null;	}