public static byte[] toBytes(final ByteBuffer byteBuffer) {
        final ByteBuffer dupBuffer = byteBuffer.duplicate();
        final byte[] arr = new byte[dupBuffer.remaining()];
        dupBuffer.get(arr);
        return arr;
    }
Generate a fast non-crypto 64bit hash of the passed buffer
stroom-bytebuffer/src/main/java/stroom/bytebuffer/ByteBufferUtils.java