//Increment ID;
id++;
}
// Iterate through the QueueEntryList and add entries to unacknowledgeMessageMap and referecenList
QueueEntryIterator queueEntries = list.iterator();
while(queueEntries.advance())
{
QueueEntry entry = queueEntries.getNode();
_unacknowledgedMessageMap.add(entry.getMessage().getMessageNumber(), entry);
// Store the entry for future inspection
_referenceList.add(entry);
}