public static Map<String, Object> asMap(final Object... keyValues) {
        return asPairs(keyValues).stream().collect(Collectors.toMap(Pair::getValue0, Pair::getValue1));
    }
Converts a set of key values to a Map.  Assumes that validations have already taken place to
assure that key positions contain strings and that there are an even number of elements.
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/util/ElementHelper.java