textContent.setDomTree( doc );
if ( body != null ) {   if ( !textItem.isReused( ) ) { htmlProcessor.execute( body, textContent );  textItem.setCssStyleSet( textContent.getCssStyleSet( ) ); textItem.setReused( true ); } evaluateEmbeddedExpression( body, textItem, textContent, htmlProcessor ); }
	public void execute( ReportItemDesign item, IReportEmitter emitter )	{		TextItemDesign textItem = (TextItemDesign) item;		IReportItemEmitter textEmitter = emitter.getEmitter( "text" ); //$NON-NLS-1$		if ( textEmitter == null )		{			return;		}		IResultSet rs = openResultSet( item );		if ( rs != null )		{			rs.next( );		}		ITextContent textContent = ContentFactory.createTextContent( textItem );		/* text has no help text now */		//textContent.setHelpText( getLocalizedString(		//		textItem.getHelpTextKey( ), textItem.getHelpText( ) ) );		setStyles( textContent, item );		setVisibility( item, textContent );		if ( textItem.getDomTree( ) == null )		{			String content = getLocalizedString( textItem.getTextKey( ),					textItem.getText( ) );			textItem.setDomTree( new TextParser( ).parse( content, textItem					.getTextType( ) ) );		}		Document doc = textItem.getDomTree( );		if ( doc != null )		{			evaluateEmbeddedExpression( doc.getFirstChild( ), textItem,					textContent );			new HTMLProcessor( context ).execute(					(Element) doc.getFirstChild( ), textContent );		}		textContent.setDomTree( doc );		String bookmarkStr = evalBookmark( textItem );		if ( bookmarkStr != null )			textContent.setBookmarkValue( bookmarkStr );		textEmitter.start( textContent );		textEmitter.end( );		closeResultSet( rs );	}