LOGGER.debug("Received route available. Message: {}", routeAvailableMessage);
Route route = new Route(routeAvailableMessage.getId(), Endpoint.this, routeAvailableMessage);
routes.add(route);
owner.addRoute(route);
} else if (message instanceof RouteUnavailableMessage) {
RouteUnavailableMessage routeUnavailableMessage = (RouteUnavailableMessage) message;
LOGGER.debug("Received route unavailable. Message: {}", routeUnavailableMessage);
Route route = owner.removeRoute(routeUnavailableMessage.getId());
routes.remove(route);
} else if (message instanceof RoutableMessage) {
RoutableMessage routableMessage = (RoutableMessage) message;
peerGroup.send(routableMessage.getDestination(), message);
} else if (message instanceof EndOfStreamEvent) {