class WebSocketRoutingPlanSender implements RoutingPlanConsumer {

    @Override
    public void consumePlan(RoutingPlan routingPlan) {
        webSocket.convertAndSend(TOPIC_ROUTE, PortableRoutingPlanFactory.fromRoutingPlan(routingPlan));
    }

    @Autowired  WebSocketRoutingPlanSender(SimpMessagingTemplate webSocket);

}