Bug 147230 [Engine test]Total format error
Details: [Engine test]Total format error Desciption: Please see the attached file
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/script/internal/ElementUtil.java
public Object visitTable( ITableContent table, Object value )
		{
			ExecutionContext context = (ExecutionContext)value;
			Object genBy = table.getGenerateBy( );
			if ( genBy instanceof TableItemDesign )
				return new TableInstance( table, context );
			else if ( genBy instanceof GridItemDesign )
				return new GridInstance( table, context );
			return null;
		}
		public Object visitText( ITextContent text, Object value )
		{
			ExecutionContext context = (ExecutionContext)value;
			return new TextItemInstance( text, context );
		}
	};
	public static IReportElementInstance getInstance( IElement element,
			ExecutionContext context )
	{
		if ( element == null )
			return null;
		if (element instanceof IContent)
		{
			return (IReportElementInstance) instanceBuilder.visit(
					(IContent) element, context );
		}
		return null;
	}
	public static IDesignElement getElement( DesignElementHandle element )
	{