resultSet = new DteResultSet( dteResults.getID( ), dteResults.getResultIterator( ), this, context );
DataSetID dataSetId = new DataSetID( dteResults.getID( ) ); resultSet = new DteResultSet( dataSetId, resultSet, dteResults .getResultIterator( ), this, context );
	protected IResultSet doExecuteQuery( DteResultSet resultSet, IQueryDefinition query )	{		assert query instanceof IQueryDefinition;		IPreparedQuery pQuery = (IPreparedQuery) queryMap.get( query );		if ( pQuery == null )		{			return null;		}		try		{			String queryID = (String) queryIDMap.get( query );			Scriptable scope = context.getSharedScope( );			String pRsetId = null; // id of the parent query restuls			long rowId = -1; // row id of the parent query results			IQueryResults dteResults; // the dteResults of this query			if ( resultSet == null )			{				// this is the root query				dteResults = pQuery.execute( scope );			}			else			{				pRsetId = resultSet.getQueryResults( ).getID( );				rowId = resultSet.getCurrentPosition( );				// this is the nest query, execute the query in the				// parent results				dteResults = pQuery.execute( resultSet.getQueryResults( ),						scope );			}			resultSet = new DteResultSet( dteResults.getID( ),					dteResults.getResultIterator( ), this, context );			rsets.addFirst( resultSet );			// save the			storeDteMetaInfo( pRsetId, rowId, queryID, dteResults.getID( ) );			return resultSet;		}		catch ( BirtException be )		{			logger.log( Level.SEVERE, be.getMessage( ) );			context.addException( be );		}		return null;	}