code: private static String createByteString(byte bytes[])
      {
          StringBuilder sb = new StringBuilder();
          if (bytes == null)
          {
              sb.append("null");
          }
          else
          {
              for (byte b : bytes)
              {
                  sb.append(String.format("%02x", b));
              }
          }
          return sb.toString();
      }
docs: Creates a String containing the hex representation of the given bytes
  
  @param bytes The bytes for the String
  @return The String