final Map<String, Object> m = new HashMap<>();
m.put(GraphSONTokens.ID, vertex.id());
m.put(GraphSONTokens.LABEL, vertex.label());
m.put(GraphSONTokens.TYPE, GraphSONTokens.VERTEX);
final Object properties = StreamFactory.stream(vertex.iterators().propertyIterator())
.collect(Collectors.groupingBy(vp -> vp.key()));
final Object hiddens = StreamFactory.stream(vertex.iterators().hiddenPropertyIterator())
.collect(Collectors.groupingBy(vp -> vp.key()));
m.put(GraphSONTokens.PROPERTIES, properties);
m.put(GraphSONTokens.HIDDENS, hiddens);