{
Queue expiryQueue = null;
if (defaultExpiryQueueObjectName != null)
{
ManagedQueue dest = null;
try
{
dest = (ManagedQueue)JMXAccessor.getJMXAttributeOverSecurity(getServer(), defaultExpiryQueueObjectName, "Instance");
}
catch (InstanceNotFoundException e)
{
//Ok
}
if (dest != null && dest.getName() != null)
{
Binding binding = postOffice.getBindingForQueueName(dest.getName());
if (binding == null)
{
throw new IllegalStateException("Cannot find binding for queue " + dest.getName());
}
Queue queue = binding.queue;
if (queue.isActive())