public static Map<String, Object> map(Pair<String, ?>... pairs) {
        Map<String, Object> map = new HashMap<String, Object>();
        for (Pair<String, ?> pair : pairs) {
            map.put(pair.getItem1(), pair.getItem2());
        }
        return map;
    }