protected function addExchanges(array $commandClassToHandlerMap)
    {
        foreach ($commandClassToHandlerMap as $messageClass => $handler) {
            $this->addExchange($handler, $messageClass);
        }
    }