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
*            the content to determine
	 * @param parameterDefinitionName
	 *            the parameter definition name defined in the content
	 * @return true if need to clear the parameter definition, otherwise false
	 */
	private boolean needClearParameterDefinition( DesignElement content,
			String parameterDefinitionName )
	{
		assert content != null && parameterDefinitionName != null;
		TemplateParameterDefinition templateParam = module
				.findTemplateParameterDefinition( parameterDefinitionName );
		
		
		
		if ( templateParam != null )
		{
			String type = templateParam.getAllowedType( module );
			IElementDefn allowedDefn = MetaDataDictionary.getInstance( )
					.getElement( type );
			if ( content.getDefn( ).isKindOf( allowedDefn ) )
				return false;
		}
		
		
		
		return true;
	}
	/**
	 * Creates a template element and replace the content element with this
	 * created template element. In this method, create a template definition