DteResultSet resultSet = (DteResultSet) getResultSet( );
	protected IResultSet doExecuteQuery( IBaseQueryDefinition query )	{		assert query instanceof IQueryDefinition;		IPreparedQuery pQuery = (IPreparedQuery) queryMap.get( query );		if ( pQuery == null )		{			return null;		}		try		{			Scriptable scope = context.getSharedScope( );			DteResultSet resultSet = (DteResultSet) getResultSet( );			IQueryResults dteResults; // the dteResults of this query			if ( resultSet == null )			{				// this is the root query				dteResults = pQuery.execute( scope );			}			else			{				// 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 );			return resultSet;		}		catch ( BirtException be )		{			logger.log( Level.SEVERE, be.getMessage( ) );			context.addException( be );		}		return null;	}