@SuppressWarnings("unchecked")
final Map<String, Object> map = (Map<String, Object>) this.handler.getParameters().get(0);
throw new JGBXFault((Integer) map.get("faultCode"), (String) map.get("faultString"));
}
else {
throw new JGBXException("failed to parse a " + this.handler.getMessageType() + " as a response.");
}
}
catch (IOException | SAXException | InstantiationException | IllegalAccessException e) {
throw new JGBXException("Failed to parse the response " + xml, e);
}
}