Bug 199834 Enable access to IContent object in IReportItemPresentation layer
In IReportItemPresentation layer, the extended item may want to access properties from current IContent object, for example, bookmark, content style. So we need expose the content object in this layer.
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/ExtendedGenerateExecutor.java
{
		ExtendedItemDesign extDesign = (ExtendedItemDesign) design;
		IForeignContent extContent = report.createForeignContent( );
		setContent( extContent );
		executeQueries( );
		
		initializeContent( extDesign, extContent );
		processAction( extDesign, extContent );
		processBookmark( extDesign, extContent );
		processStyle( extDesign, extContent );
		processVisibility( extDesign, extContent );
		generateContent( extDesign, extContent );
		return extContent;
	}
	protected void generateContent( ExtendedItemDesign item,
			IForeignContent content )
	{
		
		ExtendedItemHandle handle = (ExtendedItemHandle) item.getHandle( );
		String name = item.getName( );
		byte[] generationStatus = null;
		if ( itemGeneration != null )
		{
			itemGeneration.setModelObject( handle );
			itemGeneration.setApplicationClassLoader( context
					.getApplicationClassLoader( ) );
			itemGeneration.setScriptContext( context.getReportContext( ) );
			IBaseQueryDefinition[] queries = (IBaseQueryDefinition[]) ( (ExtendedItemDesign) item )
					.getQueries( );
			itemGeneration.setReportQueries( queries );