@Override
    protected void writeValue(final Path value, final Buffer buffer, final GraphBinaryWriter context) throws IOException {
        context.write(value.labels(), buffer);
        context.write(value.objects(), buffer);
    }
@author Stephen Mallette (http://stephen.genoprime.com)
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/binary/types/PathSerializer.java