def map(name, records)
      mapping = Registry.get(name)
      records = Array(records) unless records.is_a? Enumerable

      result = records.map do |rec|
        begin
          mapping.process_record(rec)
        rescue => e
          Rails.logger.error(e.message)
          nil
        end
      end
    end
def map(name, records)
      mapping = Registry.get(name)
      records = Array(records) unless records.is_a? Enumerable

      result = records.map do |rec|
        begin
          mapping.process_record(rec)
        rescue => e
          Rails.logger.error(e.message)
          nil
        end
      end
    end
Maps OriginalRecords to the specified model class using a registered
 Krikri::Mapping.

 @param name [Symbol] the name of a registered mapper to use
 @param records A record or list of records that respond to #to_s
 @return [Array] An array of objects of the model class, with properties
   set by the mapping.

 @see Mapping