for (int i = 0; i < queues.length; ++i) {
final AdministeredQueue queue = queues[i];
final String name = queue.getName();
if (_destinations.getDestination(name) == null) {
JmsQueue destination = new JmsQueue(name);
destination.setPersistent(true);
try {
_destinations.createDestination(destination);
} catch (JMSException exception) {
_log.error("Failed to register persistent queue " + name,
exception);