else {    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 DataSet ) { if ( !DesignChoiceConstants.TEMPLATE_ELEMENT_TYPE_DATA_SET .equals( allowedType ) ) setProperty( TemplateParameterDefinition.ALLOWED_TYPE_PROP, DesignChoiceConstants.TEMPLATE_ELEMENT_TYPE_DATA_SET ); } else { assert false; }  }
	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 ) );		}		super.end( );	}