@Nullable private static String toHex(byte[] bytes){
  return bytes == null ? null : new String(Hex.encodeHex(bytes));
}

@ Nullable private static String toHex ( byte [ ] bytes ) { return bytes == null ? null : new String ( Hex . encodeHex ( bytes ) ) ; }
covert bytes to hex
