AxisFault fault = new AxisFault( );
AxisFault fault = new AxisFault( e.getLocalizedMessage( ) );
	public ResultSet[] getResultSets( IReportDocument document )			throws RemoteException	{		assert document != null;		ResultSet[] resultSetArray = null;		IDataExtractionTask dataTask = null;		synchronized ( this.getClass( ) )		{			dataTask = engine.createDataExtractionTask( document );		}		try		{			List resultSets = dataTask.getResultSetList( );			if ( resultSets != null && resultSets.size( ) > 0 )			{				resultSetArray = new ResultSet[resultSets.size( )];				for ( int k = 0; k < resultSets.size( ); k++ )				{					resultSetArray[k] = new ResultSet( );					IResultSetItem resultSetItem = (IResultSetItem) resultSets							.get( k );					assert resultSetItem != null;					resultSetArray[k].setQueryName( resultSetItem							.getResultSetName( ) );					IResultMetaData metaData = resultSetItem							.getResultMetaData( );					assert metaData != null;					Column[] columnArray = new Column[metaData.getColumnCount( )];					for ( int i = 0; i < metaData.getColumnCount( ); i++ )					{						columnArray[i] = new Column( );						String name = metaData.getColumnName( i );						columnArray[i].setName( name );						String label = metaData.getColumnLabel( i );						if ( label == null || label.length( ) <= 0 )						{							label = name;						}						columnArray[i].setLabel( label );						columnArray[i].setVisibility( new Boolean( true ) );					}					resultSetArray[k].setColumn( columnArray );				}			}		}		catch ( BirtException e )		{			e.printStackTrace( );			AxisFault fault = new AxisFault( );			fault					.setFaultCode( new QName(							"ReportEngineService.getMetaData( )" ) ); //$NON-NLS-1$			fault.setFaultString( e.getLocalizedMessage( ) );			throw fault;		}		catch ( Exception e )		{			e.printStackTrace( );			AxisFault fault = new AxisFault( );			fault					.setFaultCode( new QName(							"ReportEngineService.getMetaData( )" ) ); //$NON-NLS-1$			fault.setFaultString( e.getLocalizedMessage( ) );			throw fault;		}		finally		{			dataTask.close( );		}		return resultSetArray;	}