def discard_unsupported_attributes(values, options={})
      case self
      when SiteSetup
        options[:version].to_f >= 2.6 ? values : values[0..-4]
      when Field
        options[:version].to_f >= 2.64 ? values : values[0..-4]
      when ExtendedField
        options[:version].to_f >= 2.4 ? values : values[0..-5]
      when ControlPoint
        options[:version].to_f >= 2.64 ? values : values[0..31] + values[35..-1]
      else
        values
      end
    end
def discard_unsupported_attributes(values, options={})
      case self
      when SiteSetup
        options[:version].to_f >= 2.6 ? values : values[0..-4]
      when Field
        options[:version].to_f >= 2.64 ? values : values[0..-4]
      when ExtendedField
        options[:version].to_f >= 2.4 ? values : values[0..-5]
      when ControlPoint
        options[:version].to_f >= 2.64 ? values : values[0..31] + values[35..-1]
      else
        values
      end
    end
Removes any attributes that are newer than the given compatibility target version.
 E.g. if a compatibility version of Mosaiq 2.4 is specified, attributes that were
 introduced in Mosaiq 2.5 or later is removed before the RTP string is created.

 @param [Array<String>] values the complete set of values of this record
 @param [Hash] options an optional hash parameter
 @option options [Float] :version the Mosaiq compatibility version number (e.g. 2.4) used for the output
 @return [Array<String>] an array of attributes where some of the recent attributes may have been removed