// simulating last message delivery
Sequence inboundSequence = rc.sequenceManager().getInboundSequence(lastAppMessage.getSequenceId());
try {
inboundSequence.registerMessage(lastAppMessage, false);
} catch (Exception ex) {
throw LOGGER.logSevereException(new RxRuntimeException(LocalizationMessages.WSRM_1146_UNEXPECTED_ERROR_WHILE_REGISTERING_MESSAGE(), ex));
}
inboundSequence.acknowledgeMessageNumber(lastAppMessage.getMessageNumber());
inboundSequence.setAckRequestedFlag();
CloseSequenceData.Builder dataBuilder = CloseSequenceData.getBuilder(lastAppMessage.getSequenceId(), lastAppMessage.getMessageNumber());