this.started = false;
this.exchangesByMID = new ConcurrentHashMap<KeyMID, Exchange>();
this.exchangesByToken = new ConcurrentHashMap<KeyToken, Exchange>();
this.ongoingExchanges = new ConcurrentHashMap<KeyUri, Exchange>();
DeduplicatorFactory factory = DeduplicatorFactory.getDeduplicatorFactory();
this.deduplicator = factory.createDeduplicator(config);
if (config.getBoolean(NetworkConfigDefaults.USE_RANDOM_MID_START))
currendMID = new AtomicInteger(new Random().nextInt(1<<16));
else currendMID = new AtomicInteger(0);
}