public void set(final Vertex vertex) {
        this.vertex = vertex instanceof StarGraph.StarVertex ?
                (StarGraph.StarVertex) vertex :
                StarGraph.of(vertex).getStarVertex();
    }
@author Marko A. Rodriguez (http://markorodriguez.com)
hadoop-gremlin/src/main/java/org/apache/tinkerpop/gremlin/hadoop/structure/io/VertexWritable.java