validates_format_of:name,:value,:with=>/^.*\S$/,:message=>"can't be blank or contain trailing white space"
validates_presence_of:reference_id,:message=>"parameters require an associated domain, host or hostgroup",:unless=>'nested or self.is_a? CommonParameter'