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
if ( !( parent instanceof IBandContent ) )
		{
			return false;
		}
		IBandContent band = (IBandContent) parent;
		if ( band.getBandType( ) == IBandContent.BAND_DETAIL )
		{
			return true;
		}
		return false;
	}
	/**
	 * Checks if the text is a data content in table header/footer or table
	 * group header/footer and uses the query of the table.
	 * 
	 * @param text
	 *            the text content.
	 */
	private boolean isAggregatable( ITextContent text )
	{
		Object generateBy = text.getGenerateBy( );
		//The data item should not have query of itself.
		DataItemDesign data = ( DataItemDesign )generateBy;
		if ( data.getQuery( ) != null )
		{
			return false;
		}
		IElement parent = text.getParent( );
		while( parent != null )
		{