def create_parameters
      {
        record.id_attribute => record.id
      }.tap do |params|
        custom_attrs = attribute_names.inject({}) do |memo, attr|
          value = record.send(attr)
          memo[attr.to_s] = value if value
          memo
        end
        params.merge! custom_attrs
        params["ownerid"] = record.owner.roleid if record.owner
      end
    end
def create_parameters
      {
        record.id_attribute => record.id
      }.tap do |params|
        custom_attrs = attribute_names.inject({}) do |memo, attr|
          value = record.send(attr)
          memo[attr.to_s] = value if value
          memo
        end
        params.merge! custom_attrs
        params["ownerid"] = record.owner.roleid if record.owner
      end
    end
Each record is assumed to have an 'id' attribute required for creation.
 In addition, other create parameters can be specified by the +custom_attribute_names+
 method on the record.