public static UID wrap(final ByteBuffer byteBuffer) {
        LOGGER.trace(() -> "buffer: " + ByteBufferUtils.byteBufferInfo(byteBuffer));

        if (byteBuffer.remaining() != UID_ARRAY_LENGTH) {
            throw new RuntimeException(LogUtil.message(
                    "Bytebuffer should have {} bytes remaining, buffer: {}",
                    UID_ARRAY_LENGTH, ByteBufferUtils.byteBufferInfo(byteBuffer)));
        }
        return new UID(byteBuffer);
    }
Wraps a new UID around the passed {@link ByteBuffer} without copying.
The buffer should be ready
stroom-pipeline/src/main/java/stroom/pipeline/refdata/store/offheapstore/UID.java