if ( element.getDefn( ).getName( ).equalsIgnoreCase( choices[i].getName( ) ) )
String name = choices[i].getName( ); IElementDefn defn = MetaDataDictionary.getInstance( ).getElement( name ); if ( element.getDefn( ).isKindOf( defn ) )
	public static boolean isTemplateSupported( DesignElement element )	{		// all the data sets support template		if ( element instanceof DataSet )			return true;		// not all the report items support template, eg. auto text does not		// support template		if ( element instanceof ReportItem )		{			IChoiceSet choiceSet = MetaDataDictionary.getInstance( )					.getChoiceSet(							DesignChoiceConstants.CHOICE_TEMPLATE_ELEMENT_TYPE );			assert choiceSet != null;			IChoice[] choices = choiceSet.getChoices( );			for ( int i = 0; i < choices.length; i++ )			{				if ( element.getDefn( ).getName( ).equalsIgnoreCase(						choices[i].getName( ) ) )					return true;			}		}		return false;	}