generateInFactory( item, content );
itemGeneration.setModelObject( handle ); itemGeneration.setReportQueries( ( (ExtendedItemDesign) item ) .getQueries( ) ); IRowSet[] rowSets = executeQueries( item ); try { if ( rowSets != null ) { itemGeneration.onRowSets( rowSets ); } if ( itemGeneration.needSerialization( ) ) { ByteArrayOutputStream out = new ByteArrayOutputStream( ); itemGeneration.serialize( out ); generationStatus = out.toByteArray( ); } itemGeneration.finish( ); } catch ( BirtException ex ) { logger.log( Level.SEVERE, ex.getMessage( ), ex ); context.addException( new EngineException( MessageConstants.EXTENDED_ITEM_GENERATION_ERROR, handle .getExtensionName( ) + ( name != null ? " " + name : "" ), ex ) ); } closeQueries( rowSets );
	protected void generateContent( ExtendedItemDesign item,			IForeignContent content )	{		if ( context.isInFactory( ) )		{			generateInFactory( item, content );		}		else		{			loadFromArchive( item, content );		}	}