MethodResult callResult =
portUtil.sendMethodCallWithResult(registration.getPortId(), registration.getDestination(), methodCall);
switch (callResult.getType()) {
case Object:
Object result = callResult.getArg();
return transformationHandler.transformResult(result);
case Void:
return null;
case Exception:
throw new RuntimeException(callResult.getArg().toString());
default: