public static String toStringBinary(final ByteBuffer b) {
        return toStringBinary(b, 0, b.capacity());
    }
Similar to {@link Arrays#copyOfRange(byte[], int, int)}

@param original the buffer from which the copy has to happen
@param from     the starting index
@param to       the ending index
@return a byte[] created out of the copy
stroom-bytebuffer/src/main/java/stroom/bytebuffer/hbase/ByteBufferUtils.java