final AtomicInteger called = new AtomicInteger(0);
final KryoReader reader = KryoReader.build()
.workingDirectory(File.separator + "tmp").create();
VertexStreamIterator vsi = new VertexStreamIterator(new ByteArrayInputStream(os.toByteArray()), reader);
boolean found = false;
while (vsi.hasNext()) {
Vertex v = vsi.next();
//System.out.println("v = " + v);
//System.out.println("\tin edges: " + count(v.in().toList()));
//System.out.println("\tout edges: " + count(v.out().toList()));
String name = v.<String>property("name").value();