class HexUtil {

    public static void appendHexString(StringBuilder buffer, byte[] bytes) {
        assertNotNull(buffer);
        if (bytes == null) {
            return;     // do nothing (a noop)
        }
        appendHexString(buffer, bytes, 0, bytes.length);
    }

}