// Generate the Close field.
// -------------------------------
String rmNamespaceValue = SpecSpecificConstants.getRMNamespaceValue(Sandesha2Constants.SPEC_VERSIONS.v1_1);
CloseSequence sequence = new CloseSequence(rmNamespaceValue);
Identifier id1 = new Identifier(rmNamespaceValue);
id1.setIndentifer(uuid);
sequence.setIdentifier(id1);
applicationRMMsg.setCloseSequence(sequence);
LastMessageNumber lastMsgNumber = new LastMessageNumber(rmNamespaceValue);
lastMsgNumber.setMessageNumber(1);
sequence.setLastMessageNumber(lastMsgNumber);