public static String byteToHex(final byte b) {
        final byte[] oneByteArr = new byte[1];
        oneByteArr[0] = b;
        return DatatypeConverter.printHexBinary(oneByteArr);

    }
Converts a byte array into a hex representation with a space between each
byte e.g 00 00 01 00 05 59 B3

@param arr The byte array to convert
@return The byte array as a string of hex values separated by a spaces
stroom-lmdb/src/main/java/stroom/lmdb/LmdbUtils.java