Bug 197068 Failure occurs inJunit test of org.eclipse.birt.report.engine.tests in daily build 20070719
Failure occurs inJunit test of org.eclipse.birt.report.engine.tests in daily build 20070719. Please see the attachment for details.
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/presentation/ReportDocumentBuilder.java
}
		return offset;
	}
	private boolean needSave( IContent content )
	{
		InstanceID id = content.getInstanceID( );
		if ( id == null || id.getComponentID( ) == -1 )
		{
			return true;
		}
		IContent parent = (IContent) content.getParent( );
		if ( parent != null )
		{
			InstanceID pid = parent.getInstanceID( );
			if ( pid == null || pid.getComponentID( ) == -1 )
			{
				return true;
			}
		}
		if ( content instanceof AbstractContent )
		{
			return ( (AbstractContent) content ).needSave( );
		}
		return true;
	}
	/**
	 * emitter used to save the report content into the content stream
	 * 
	 */
	class ContentEmitter extends ContentEmitterAdapter