public static byte[][] toArray(final List<byte[]> array) {
        // List#toArray doesn't work on lists of byte [].
        byte[][] results = new byte[array.size()][];
        for (int i = 0; i < array.size(); i++) {
            results[i] = array.get(i);
        }
        return results;
    }
Convert a list of byte[] to an array

@param array List of byte [].
@return Array of byte [].
stroom-bytebuffer/src/main/java/stroom/bytebuffer/hbase/Bytes.java