class StringUtils {
public static String toHex(byte[] response) {
StringBuilder builder = new StringBuilder();
builder.append("0x");
for (byte b : response) {
builder.append(String.format("%02x", b));
}
return builder.toString();
}
}