return new Callback(this.handler.getMethodName(), this.handler.getParameters());
}
else if (this.handler.getMessageType() == MessageType.FAULT) {
@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 callback.");
}
}