@Override
    protected void writeValue(final Property value, final Buffer buffer, final GraphBinaryWriter context) throws IOException {
        context.writeValue(value.key(), buffer, false);
        context.write(value.value(), buffer);

        // leave space for the parent reference element as it's not serialized for references
        context.write(null, buffer);
    }
@author Stephen Mallette (http://stephen.genoprime.com)
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/binary/types/PropertySerializer.java