public static Map<String, Property> propertyMap(final Element element, final String... propertyKeys) {
        final Map<String, Property> propertyMap = new HashMap<>();
        element.properties(propertyKeys).forEachRemaining(property -> propertyMap.put(property.key(), property));
        return propertyMap;
    }
A standard method for determining if two {@link Property} objects are equal. This method should be used by any
{@link Object#equals(Object)} implementation to ensure consistent behavior.

@param a the first {@link Property}
@param b the second {@link Property}
@return true if equal and false otherwise
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/util/ElementHelper.java