Queue queue = new Queue(anExchange, aName, true, false, false);
try {
queue.channel().queueBind(queue.name(), anExchange.name(), "");
} catch (IOException e) {
throw new MessageException("Failed to bind the queue and exchange.", e);
}
return queue;
}