if ( ( (DataSetHandle) l.get( i ) ).getName( ) != null && ( (DataSetHandle) l.get( i ) ).getName( )
if ( ( (DataSetHandle) l.get( i ) ).getQualifiedName( ) != null && ( (DataSetHandle) l.get( i ) ).getQualifiedName( )
	private void defineDataSourceDataSet( QueryDefinition queryDefn )			throws AdapterException, BirtException	{		String dataSetName = queryDefn.getDataSetName( );		List l = this.moduleHandle.getAllDataSets( );		DataSetHandle handle = null;		for ( int i = 0; i < l.size( ); i++ )		{			if ( ( (DataSetHandle) l.get( i ) ).getName( ) != null					&& ( (DataSetHandle) l.get( i ) ).getName( )							.equals( dataSetName ) )			{				handle = (DataSetHandle) l.get( i );			}		}		defineDataSet( handle );	}