public function remove($queueName)
    {
        $queue = null;
        if (isset($this->queues[$queueName])) {
            $queue = $this->queues[$queueName];
        }
        unset($this->queues[$queueName]);

        return $queue;
    }