if (refreshingQueues) {
// Scheduler is being refreshed.
// Going to commit the changes to the hierarchy. Lock the scheduler.
synchronized (this) {
AbstractQueueComparator comparator = new AbstractQueueComparator();
this.root.sort(comparator);
newRootAbstractQueue.sort(comparator);
root.validateAndCopyQueueContexts(newRootAbstractQueue);
}
} else {