public EventReply event(final EventMessage event) {
try {
Object data = event.getData() != null ? event.getData() : new TrackableNullResult();
Message<?> res = eventsPublisherGateway.send(data, event, event.getEvent());
return new EventReply(res.getPayload(), res.getHeaders().getSequenceSize());
} catch (MessagingException rre) {
if (log.isDebugEnabled()) {
log.debug("Missing reply on event " + event.getEvent() + " for scope " +
event.getNamespace() + " for one or more listeners - " + rre.getMessage());
}
}
return new EventReply(null, 0);
}