// Discard all activityDataObjects which we are no longer waiting
// for
while (firstQueuedSequenceNumber < expectedSequenceNumber) {
TimedActivityDataObject activity = queuedActivities.remove();
log.error("Expected activityDataObject #"
+ expectedSequenceNumber
+ " but an older activityDataObject is still in the queue"
+ " and will be dropped (#" + firstQueuedSequenceNumber