setProperty( TemplateParameterDefinition.ALLOWED_TYPE_PROP,
setProperty( ITemplateParameterDefinitionModel.ALLOWED_TYPE_PROP,
	public void end( ) throws SAXException	{		DesignElement defaultElement = element.getDefaultElement( );		if ( defaultElement == null )		{			// the default element of the template parameter definition must not			// be null			handler					.getErrorHandler( )					.semanticError(							new DesignParserException(									new String[]{element.getIdentifier( )},									DesignParserException.DESIGN_EXCEPTION_MISSING_TEMPLATE_PARAMETER_DEFAULT ) );		}		else		{			// if allowed type is empty or inconsistent with the default			// element, then set it to the type of the default element			String allowedType = element.getAllowedType( handler.getModule( ) );			if ( defaultElement instanceof ReportItem )			{				if ( !defaultElement.getElementName( ).equals( allowedType ) )					setProperty( TemplateParameterDefinition.ALLOWED_TYPE_PROP,							defaultElement.getElementName( ) );			}			else if ( defaultElement instanceof SimpleDataSet )			{				if ( !DesignChoiceConstants.TEMPLATE_ELEMENT_TYPE_DATA_SET						.equals( allowedType ) )					setProperty(							TemplateParameterDefinition.ALLOWED_TYPE_PROP,							DesignChoiceConstants.TEMPLATE_ELEMENT_TYPE_DATA_SET );			}			else			{				assert false;			}		}		super.end( );	}