Bug 164436 [Regression]Chart can't be converted to a template report item[02]
Description: Chart can't be converted to a template report item Build number: 2.2.0.v20061114-1013 Steps to reproduce: 1.New a chart 2.Right click the chart Expected result: "Create Template Report Item" is enabled Actual result: "Create Template Report Item" is grayed out Error log: N/A
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/util/ModelUtil.java
* null, or element is not in the tree of module, then do nothing.
	 * 
	 * @param module
	 * @param element
	 */
	public static void addElement2NameSpace( Module module,
			DesignElement element )
	{
		if ( module == null || element == null || element.getRoot( ) != module )
			return;
		module.makeUniqueName( element );
		int ns = ( (ElementDefn) element.getDefn( ) ).getNameSpaceID( );
		if ( element.getName( ) != null
				&& ns != MetaDataConstants.NO_NAME_SPACE
				&& element.getContainer( ).isManagedByNameSpace(
						element.getContainerSlot( ) ) )
			module.getNameSpace( ns ).insert( element );
	}
	/**
	 * Gets the element name with the given xml name.
	 * 
	 * @param xmlName
	 *            the xml name to find
	 * @return the element name with the given xml name if found, otherwise null
	 */
	public static String getElementNameFromXmlName( String xmlName )
	{
		if ( StringUtil.isBlank( xmlName ) )
			return null;
		if ( DesignSchemaConstants.CELL_TAG.equalsIgnoreCase( xmlName ) )