// Generate the SequenceAck field.
// -------------------------------
String rmNamespaceValue = SpecSpecificConstants.getRMNamespaceValue(Sandesha2Constants.SPEC_VERSIONS.v1_1);
SequenceAcknowledgement sequenceAck = new SequenceAcknowledgement(rmNamespaceValue);
// Set the sequenceId
Identifier id = new Identifier(rmNamespaceValue);
id.setIndentifer(sequenceId);
sequenceAck.setIdentifier(id);
// Set the Invalid range!
AcknowledgementRange ackRange = new AcknowledgementRange(rmNamespaceValue);
ackRange.setLowerValue(1);
ackRange.setUpperValue(3);
sequenceAck.addAcknowledgementRanges(ackRange);
// Set the SequenceAcknowledgement part in the message
applicationRMMsg.setMessagePart(Sandesha2Constants.MessageParts.SEQ_ACKNOWLEDGEMENT, sequenceAck);
applicationRMMsg.addSOAPEnvelope();