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());
dataBuilder.acknowledgementData(lastAppMessage.getAcknowledgementData());
return dataBuilder.build();