def properties=(props)
      release_policies.destroy_all
      props.each_pair do |property, details|
        release_policies.build(:property => property, :type_identifier => details['type']) if details['value']
      end
    end
def properties=(props)
      release_policies.destroy_all
      props.each_pair do |property, details|
        release_policies.build(:property => property, :type_identifier => details['type']) if details['value']
      end
    end
Sets the release policies by first deleting the old ones and
 then appending a new one for every given sreg and ax property.
 This setter is used to set the attributes recieved from the
 update site form, so it gets passed AX and SReg properties.
 To be backwards compatible (SReg seems to be obsolete now that
 there is AX), SReg properties get a type_identifier matching
 their property name so that they can be distinguished from AX
 properties (see the sreg_properties and ax_properties getters).