ByteBuffer serialize(final T object) {
        final ByteBuffer byteBuffer = ByteBuffer.allocateDirect(getSerde().getBufferCapacity());
        getSerde().serialize(byteBuffer, object);
        return byteBuffer;
    }
Assumes a no-arg ctor, override if serde doesn't have one.
stroom-lmdb/src/test/java/stroom/lmdb/serde/AbstractSerdeTest.java