Bug 196745 Data Engine implementation of BPS80- Result Set Sharing
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/ResultIterator.java
}
		finally
		{
			logger.logp( Level.FINE,
					ResultIterator.class.getName( ),
					"getResultMetaData",
					"Returns the result metadata" );
		}
	}
	
	/*
	 * @see org.eclipse.birt.data.engine.api.IResultIterator#close()
	 */
	public void close( ) throws BirtException
	{
		if ( state == NOT_STARTED || state == CLOSED )
			return;
		if ( this.getRdSaveHelper( ).needsSaveToDoc( ) )
		{
    		
			while ( this.next( ) );
			
			this.getRdSaveHelper( ).doSaveFinish( );
		}
		if ( needCache() )
		{
			while( this.next() ){}
			closeCacheOutputStream( );
		}
		if ( odiResult != null )