class DecodingUtils {

  public static byte[] fromHexString(String hexString) {
    String hexStringWithoutSpaces = StringUtils.remove(hexString, " ");
    try {
      return Hex.decodeHex(hexStringWithoutSpaces.toCharArray());
    } catch (DecoderException e) {
      throw Throwables.propagate(e);
    }
  }

}