code: public static String toHex(byte[] byteArray) {
  
          String result = null;
          if (byteArray != null) {
              result = Hex.encodeHexString(byteArray);
          }
          return result;
      }
docs: Renders the given byte array as a hex String.
  <p>
  This is a convenience method useful for testing values during development.
  
  @param byteArray The byte array to be represented in hex.
  @return A hex string representation of the byte array.