public boolean isLastReference(final ByteBuffer byteBuffer) {
        // Ever so slightly cheaper than extracting the count and checking the long value
        // TODO could maybe use ByteBufferUtils.equals
        return stroom.bytebuffer.hbase.ByteBufferUtils.compareTo(
                REF_COUNT_ONE, 0, REFERENCE_COUNT_BYTES,
                byteBuffer, REFERENCE_COUNT_OFFSET, REFERENCE_COUNT_BYTES) == 0L
               ||
               stroom.bytebuffer.hbase.ByteBufferUtils.compareTo(
                       REF_COUNT_ZERO, 0, REFERENCE_COUNT_BYTES,
                       byteBuffer, REFERENCE_COUNT_OFFSET, REFERENCE_COUNT_BYTES) == 0L;
    }
@return True if the reference count is one or zero.
stroom-pipeline/src/main/java/stroom/pipeline/refdata/store/offheapstore/serdes/ValueStoreMetaSerde.java