List updatedQueues = computeUpdatedQueues(items);
for (int i = 0; i < updatedQueues.size(); i++)
{
LocalQueue localQueue = (LocalQueue)updatedQueues.get(i);
if (localQueue.redeliver(this,items))
committableDestinations.add(localQueue);
}
// Commit destinations
commitChanges(committableDestinations);