code: public static Map<String, Object> from(Pair... pairs) {
          Map<String, Object> map = new HashMap<String, Object>(pairs.length);
          for (Pair p : pairs) {
              map.put(p.key, p.value);
          }
          return map;
      }
docs: construct me from the given pairs
  @param pairs
  @return the map