}
}
protected void handleQueueNodeCreation(final AMQDestination dest, boolean noLocal) throws AMQException
{
final Node node = dest.getNode();
final Map<String,Object> arguments = node.getDeclareArgs();
if (!arguments.containsKey((AddressHelper.NO_LOCAL)))
{
arguments.put(AddressHelper.NO_LOCAL, noLocal);
}
String altExchange = node.getAlternateExchange();
if(altExchange != null && !"".equals(altExchange))
{
arguments.put("alternateExchange", altExchange);
}
(new FailoverNoopSupport<Void, AMQException>(
new FailoverProtectedOperation<Void, AMQException>()
{
public Void execute() throws AMQException, FailoverException
{
sendQueueDeclare(AMQShortString.valueOf(dest.getAddressName()),
node.isDurable(),
node.isExclusive(),
node.isAutoDelete(),
FieldTable.convertToFieldTable(arguments),
false);
return null;
}