{
throw new IllegalStateException("Cannot find queue with id " + encoding.queueID);
}
// TODO - this involves a scan - we should find a quicker qay of doing it
MessageReference removed = queue.removeReferenceWithID(messageID);
referencesToAck.add(removed);
if (removed == null)
{