public Vertex getReferenceVertex() { // System.out.println("value = " + value); CloseableSequence<Vertex> i = values.get(VALUE, NAMESPACES_VERTEX_ID); try { return i.hasNext() ? i.next() : null; } finally { i.close(); } }
public Vertex findVertex(final Value value) { CloseableSequence<Vertex> i = values.get(VALUE, value.stringValue()); try { while (i.hasNext()) { Vertex v = i.next(); if (matches(v, value)) { return v; } } return null; } finally { i.close(); } }