public static byte[] hexStringToBytes(final String hexString) {
    return DatatypeConverter.parseHexBinary(hexString);
  }
Converts a hex string to a byte array. If the hex string has an odd number of characters, a 0
is added at the end of the string.

<p>Example: 414141 => {0x41, 0x41, 0x41}

@param hexString The hex string to convert.
@return The converted byte array.
java/zylib/src/main/java/com/google/security/zynamics/zylib/general/Convert.java