Set<String> mySessionId = Collections.singleton(message
.<String> getHeader(WampMessageHeader.WEBSOCKET_SESSION_ID));
for (String replyToTopicURI : handlerMethod.getReplyTo()) {
if (StringUtils.hasText(replyToTopicURI)) {
if (handlerMethod.isExcludeSender() != null && handlerMethod.isExcludeSender()) {
pubSubHandler.sendToAllExcept(new EventMessage(replyToTopicURI, returnValue),
mySessionId);
} else {
pubSubHandler.sendToAll(new EventMessage(replyToTopicURI, returnValue));
}
}
}
}
} catch (Throwable ex) {