&& DesignElement.REF_TEMPLATE_PARAMETER_PROP.equals( prop
&& IDesignElementModel.REF_TEMPLATE_PARAMETER_PROP.equals( prop
	public void checkProperty( ElementPropertyDefn prop, Object value )			throws PropertyValueException	{		if ( value == null )			return;		// element is a template element, the referred template definition can		// not be set to a non-exsiting parameter definition or a wrong type		// definition		if ( ( element instanceof ReportItem || element instanceof TemplateReportItem )				&& DesignElement.REF_TEMPLATE_PARAMETER_PROP.equals( prop						.getName( ) ) )		{			assert value instanceof ElementRefValue;			if ( ( (ElementRefValue) value ).getElement( ) == null )			{				TemplateParameterDefinition templateParam = resolveTemplateParameterDefinition(						module, ( (ElementRefValue) value ).getName( ) );				if ( !( templateParam.getDefaultElement( ) instanceof ReportItem ) )					throw new PropertyValueException(							element,							prop.getName( ),							value,							PropertyValueException.DESIGN_EXCEPTION_INVALID_VALUE );			}		}		if ( ( element instanceof SimpleDataSet || element instanceof TemplateDataSet )				&& DesignElement.REF_TEMPLATE_PARAMETER_PROP.equals( prop						.getName( ) ) )		{			assert value instanceof ElementRefValue;			if ( ( (ElementRefValue) value ).getElement( ) == null )			{				TemplateParameterDefinition templateParam = resolveTemplateParameterDefinition(						module, ( (ElementRefValue) value ).getName( ) );				if ( !( templateParam.getDefaultElement( ) instanceof SimpleDataSet ) )					throw new PropertyValueException(							element,							prop.getName( ),							value,							PropertyValueException.DESIGN_EXCEPTION_INVALID_VALUE );			}		}	}