HashMap values = new HashMap( ); if ( foreignContent.getRawValue( ) instanceof HashMap ) { values = (HashMap) foreignContent.getRawValue( ); }  String result = executeTemplate( template, values );  String rawType = ForeignContent.getTextRawType( textType, result ); assert IForeignContent.HTML_TYPE.equals( rawType );
String result = executeTemplate( template, rawValues );
	protected void processTemplateContent( IForeignContent foreignContent )	{		assert IForeignContent.TEMPLATE_TYPE.equals( foreignContent				.getRawType( ) );		if ( foreignContent.getGenerateBy( ) instanceof TextItemDesign )		{			TextItemDesign design = (TextItemDesign) foreignContent					.getGenerateBy( );			String text = localize( foreignContent, design.getTextKey( ),					design.getText( ) );			String textType = design.getTextType( );			TextTemplate template = parseTemplate( text );			HashMap values = new HashMap( );			if ( foreignContent.getRawValue( ) instanceof HashMap )			{				values = (HashMap) foreignContent.getRawValue( );			}			String result = executeTemplate( template, values );			String rawType = ForeignContent.getTextRawType( textType, result );			assert IForeignContent.HTML_TYPE.equals( rawType );			foreignContent.setRawType( IForeignContent.HTML_TYPE );			foreignContent.setRawValue( result );		}	}