public void writeNextUid(final ByteBuffer otherBuffer) {
        ByteBufferUtils.copy(this.byteBuffer, otherBuffer);
        try {
            // Increment the uid in place in the copy
            UNSIGNED_BYTES.increment(otherBuffer);
        } catch (Exception e) {
            throw new RuntimeException(LogUtil.message("Error writing next UID. Current value {}. {}",
                    UNSIGNED_BYTES.get(this.byteBuffer, this.byteBuffer.position()),
                    e.getMessage()), e);
        }
    }
Writes the next uid value after 'this' to the passed bytebuffer
stroom-pipeline/src/main/java/stroom/pipeline/refdata/store/offheapstore/UID.java