}
for (HandlerMethod match : matches) {
HandlerMethod handlerMethod = match.createWithResolvedBean();
InvocableHandlerMethod invocableHandlerMethod = new InvocableHandlerMethod(handlerMethod, objectMapper,
conversionService);
invocableHandlerMethod.setMessageMethodArgumentResolvers(this.argumentResolvers);
try {
Object[] arguments = null;
if (callMessage.getArguments() != null) {
arguments = callMessage.getArguments().toArray();
}
Object returnValue = invocableHandlerMethod.invoke(callMessage, arguments);
CallResultMessage callResultMessage = new CallResultMessage(callMessage.getCallID(), returnValue);
wampMessageSender.sendMessageToClient(sessionId, callResultMessage);
} catch (Exception ex) {
CallErrorMessage callErrorMessage = new CallErrorMessage(callMessage.getCallID(), "", ex.toString());
wampMessageSender.sendMessageToClient(sessionId, callErrorMessage);