QueryDefinition queryDefn = getQueryDefinition( dataSetDesign, 1 );
QueryDefinition queryDefn = getQueryDefinition( dataSetDesign, -1 );
	public IPreparedQuery prepareQuery( DataSetHandle dataSet ) throws BirtException	{		DataSessionContext context = new DataSessionContext( DataSessionContext.MODE_DIRECT_PRESENTATION,				dataSet.getModuleHandle( ) );		DataRequestSession session = DataRequestSession.newSession( context );		IBaseDataSetDesign dataSetDesign = session.getModelAdaptor( )				.adaptDataSet( dataSet );		QueryDefinition queryDefn = getQueryDefinition( dataSetDesign, 1 );		return session.prepare( queryDefn, null );	}