try
{
List<QueueEntry> queueEntries = new ArrayList<QueueEntry>( queues.size() );
for ( Map.Entry<String, TaskQueue> entry : queues.entrySet() )
{
queueEntries.add( new QueueEntry( entry.getKey(), entry.getValue().getQueueSnapshot().size() ) );
}
return queueEntries;
}
catch ( TaskQueueException e )