session.setMaximumCommandSequenceNumber(parser.getMaximumCommandSequenceNumber());
}
// the PDU expCmdSN is greater than the local expCmdSN, so we
// have to update the local one
if (parser.incrementSequenceNumber()) {
if (connection.getExpectedStatusSequenceNumber().compareTo(parser.getStatusSequenceNumber()) >= 0) {
connection.incrementExpectedStatusSequenceNumber();
} else {
LOGGER.error("Status Sequence Number Mismatch (received, expected): " + parser.getStatusSequenceNumber() + ", " + (connection.getExpectedStatusSequenceNumber().getValue() - 1));
}