Bug 163310 testRenderReportlet_complex_list() & testRenderReportlet_complex_table() in tests.engine fail
Details: testRenderReportlet_complex_list() & testRenderReportlet_complex_table() in tests.engine fail You can find the test case in org.eclipse.birt.report.tests.engine.api.RenderTaskTest.java "Failed to find instance id of LIST" & "Failed to find instance id of TABLE"
engine/org.eclipse.birt.report.engine.emitter.html/src/org/eclipse/birt/report/engine/emitter/html/MetadataEmitter.java
{
		tagStack.push( tag );
		writer.openTag( tag );
		if ( content.getBookmark( ) == null )
		{
			content.setBookmark( idGenerator.generateUniqueID( ) );
		}
		writer.attribute( HTMLTags.ATTR_CLASS, styleName ); 
		setActiveIDTypeIID( content );
		HTMLEmitterUtil.setBookmark( writer, tag, content.getBookmark( ) );
	}
	private void endContent( IContent content )
	{
		writer.closeTag( (String) tagStack.pop( ) );
	}
	/**
	 * A TextContent needs metadata when it's a :
	 * <li>label item.
	 * <li>template item.
	 * <li>data item in table header/footer or table group header/footer and
	 * using the query extended from the table.
	 * 
	 * @param text
	 *            the text content.
	 * @return true if and only if the metadata of the content needs to be
	 *         output.
	 */
	private boolean needMetadata( ITextContent text )
	{
		Object generateBy = text.getGenerateBy( );