@Override
    protected void writeValue(final Duration value, final Buffer buffer, final GraphBinaryWriter context) throws IOException {
        buffer.writeLong(value.getSeconds()).writeInt(value.getNano());
    }
@author Stephen Mallette (http://stephen.genoprime.com)
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/binary/types/DurationSerializer.java