public function locate(QueueContextInterface $queueManager, QueueInterface $queue)
    {

        // load registered queues and requested queue name
        $queues = $queueManager->getQueues();

        // return the requested message queue for the passed priority key, if available
        if (array_key_exists($queueName = $queue->getName(), $queues)) {
            return $queues[$queueName];
        }
    }