LOG.fine("Start purging resend candidates.");
List<ResendCandidate> sequenceCandidates = getSequenceCandidates(seq);
if (null != sequenceCandidates) {
for (int i = sequenceCandidates.size() - 1; i >= 0; i--) {
ResendCandidate candidate = sequenceCandidates.get(i);
RMProperties properties = RMContextUtils.retrieveRMProperties(candidate.getMessage(),
true);
SequenceType st = properties.getSequence();
BigInteger m = st.getMessageNumber();
if (seq.isAcknowledged(m)) {
sequenceCandidates.remove(i);
candidate.resolved();
purged.add(m);