Bug 148610 [regression] Java based scripting -> table repeat header does not work properly in web viewer
steps to reproduce: - use attached reports and Java classes - preview in web viewer expected behavior: - table headers will not be repeated actual behavior: - table headers were repeated
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/internal/executor/doc/ReportItemReader.java
assert fragment != null;
		DocumentExtension docExt = (DocumentExtension) content
				.getExtension( IContent.DOCUMENT_EXTENSION );
		if ( docExt != null )
		{
			long headerOffset = docExt.getFirstChild( );
			if ( headerOffset != -1 )
			{
				fragment.addFragment( new long[]{headerOffset},
						new long[]{headerOffset} );
				Fragment headerFrag = fragment.getFragment( headerOffset );
				headerFrag.addFragment( new long[]{},
						new long[]{Long.MAX_VALUE} );
				
				child = headerOffset;
			}
		}
	}
	/**
	 * the content is loaded, and it will not be used by any one else.
	 */
	protected void unloadContent( )
	{
		if ( rset != null )
		{
			reader.closeQuery( rset );
		}
		reader.unloadContent( offset );
	}
}