if ( context.isInFactory( ) ) { TextItemScriptExecutor.handleOnCreate( (ForeignContent) content, context ); }
	protected void executeHtmlText( TextItemDesign design,			IContentEmitter emitter )	{		IForeignContent content = report.createForeignContent( );		assert ( content instanceof ForeignContent );		IContent parent = context.getContent( );		context.pushContent( content );		openResultSet( design );		accessQuery( design, emitter );		initializeContent( parent, design, content );		processAction( design, content );		processBookmark( design, content );		processStyle( design, content );		processVisibility( design, content );		if ( context.isInFactory( ) )		{			TextItemScriptExecutor.handleOnCreate( (ForeignContent) content,					context );		}				HashMap exprs = design.getExpressions( );		if ( exprs != null && !exprs.isEmpty( ) )		{			HashMap results = new HashMap( );			Iterator iter = exprs.entrySet( ).iterator( );			while ( iter.hasNext( ) )			{				Map.Entry entry = (Map.Entry) iter.next( );				String expr = ( String ) entry.getValue( );				Object value = context.evaluate( expr );				results.put( entry.getKey( ), value );			}			content.setRawValue( results );		}		content.setRawType( IForeignContent.TEMPLATE_TYPE );		startTOCEntry( content );		if ( emitter != null )		{			emitter.startForeign( content );		}		finishTOCEntry( );		closeResultSet( );		context.popContent( );	}