}
private void forwardEvent(Object event) {
if (!this.route.isEgressEnabled())
return;
MessageManager msgBuilder = this.getMessageBuilder();
if (event instanceof String) {
msgBuilder.sendTextToDestinations(event.toString(), route.getDestinations().toArray(new Destination[]{}));
} else {
msgBuilder.sendObjectToDestinations(event, route.getDestinations().toArray(new Destination[]{}));
}
}