exchanges.put(event.getExchange().getExchangeId(), event.getExchange());
synchronized (exchanges) { exchanges.put(event.getExchange().getExchangeId(), event.getExchange()); exchanges.notify(); }
    public void exchangeSent(ExchangeEvent event) {        exchanges.put(event.getExchange().getExchangeId(), event.getExchange());    }