public static void writeUid(final ByteBuffer byteBuffer, final UID uid) {
        // Backing buffer is a duplicate view so the passed uid is un-affected.
        byteBuffer.put(uid.getBackingBuffer());
    }
Writes a {@link UID} to the passed {@link ByteBuffer}, advancing the position but
not flipping it.
stroom-pipeline/src/main/java/stroom/pipeline/refdata/store/offheapstore/serdes/UIDSerde.java