Bug 183910 Cross tab can not be reverted to template item after it is reverted to report item [1102]
Description: Cross tab can not be reverted to template item after it is reverted to report item. Build number: 2.2.0.v20070425-0630 Steps to reproduce: 1. New a cross tab. 2. Right click to select the cross tab, choose "Create Template Report Item" to create template item, then revert the cross tab to report item. 3. Right click to select the cross tab. Expected result: The cross tab cna be revert to report item and template item both. Actual result: In the context menu, "Revert To Report Item" and "Revert To Template Item" are grayed out. Error log: N/A
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/command/TemplateCommand.java
}
	/**
	 * Resolve the property value of <code>REF_TEMPLATE_PARAMETER_PROP</code>
	 * in a template element.
	 * 
	 * @param module
	 *            the module of the template element
	 * @param name
	 *            the name to resolve
	 * @return the element reference value
	 */
	private TemplateParameterDefinition resolveTemplateParameterDefinition(
			Module module, String name )
	{
		PropertyDefn prop = element
				.getPropertyDefn( IDesignElementModel.REF_TEMPLATE_PARAMETER_PROP );
		if ( prop == null )
			return null;
		ElementDefn targetDefn = (ElementDefn) prop.getTargetElementType( );
		DesignElement resolvedElement = module.resolveElement( name, targetDefn
				.getNameSpaceID( ), prop );
		return (TemplateParameterDefinition) resolvedElement;
	}
	/**
	 * Checks the validation of the template element to insert. Verify that the
	 * template element to insert refers a valid and exsiting template parameter
	 * definition. If the referred the template definition doesn't exsit, then
	 * return the template parameter definition to add it to the module.
	 * 
	 * @param content