throw new NullPointerException("The name of the queue cannot be 'null'");
}
synchronized (queues) {
if (queues.containsKey(queueName)) {
Queue queue = queues.get(queueName);
QueueImpl mqi = (QueueImpl) queue;
mqi.deleteQueue();
queues.remove(queueName);
return true;
} else {
return false;
}