code: public Object getFirstValue(String key) {
      List values = fields.get(key);
      return values.size() > 0 ? values.get(0) : null;
    }
docs: Returns the first value associated with the given key, or null if no such value exists