Bug 199537 Fail to display data in Web viewer[0002]
Description: Fail to display data in Web viewer Build number:2.2.1.v200708101407 Steps to reproduce: 1. Preview attached report in Web Viewer. Expected result: Display data. Actual result: No data. Error log:n/a
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/util/ReportDesignSerializer.java
*            the source element
	 * @param target
	 *            the target element
	 * @return the container of <code>target</code>
	 */
	private DesignElement getTargetContainer( DesignElement sourceElement,
			DesignElement target, List processedElement )
	{
		DesignElement sourceContainer = sourceElement.getContainer( );
		long containerId = sourceContainer.getID( );
		DesignElement tmpContainer = null;
		tmpContainer = (DesignElement) externalElements.get( sourceContainer );
		if ( tmpContainer == null )
			tmpContainer = targetDesign.getElementByID( containerId );
		if ( tmpContainer == null )
			return null;
		if ( sourceContainer.getElementName( ).equalsIgnoreCase(
				tmpContainer.getElementName( ) ) )
			return tmpContainer;
		if ( sourceContainer instanceof Module && tmpContainer == targetDesign )
			return tmpContainer;
		if ( sourceContainer instanceof Theme )
			return targetDesign;
		return tmpContainer;
	}
	/**
	 * Visits the member value.
	 * 
	 * @param obj
	 *            the member value to traverse