if (acknowledgementData.getAcknowledgedSequenceId() != null) { // process outbound sequence acknowledgements
final List<AckRange> acknowledgedRanges = acknowledgementData.getAcknowledgedRanges();
if (!acknowledgedRanges.isEmpty()) {
Sequence outboundSequence = sequenceManager.getOutboundSequence(acknowledgementData.getAcknowledgedSequenceId());
if (!outboundSequence.isClosed()) { // we ignore acknowledgments on closed sequences
outboundSequence.acknowledgeMessageNumbers(acknowledgedRanges);
}
}
}
if (acknowledgementData.getAckReqestedSequenceId() != null && !doNotSetAckRequestedFlag) { // process inbound sequence ack requested flag