messageContext.setEnvelope(dummyEnvelope);
RMMsgContext applicationRMMsg = new RMMsgContext(messageContext);
// Create an RMSBean so the create sequence message can be created
RMSBean rmsBean = new RMSBean();
rmsBean.setRMVersion(Sandesha2Constants.SPEC_VERSIONS.v1_1);
rmsBean.setToEPR(to);
rmsBean.setAcksToEPR(AddressingConstants.Final.WSA_NONE_URI);
// Create a Create Sequence message
// generating a new create sequeuce message.
RMMsgContext createSeqRMMessage = RMMsgCreator.createCreateSeqMsg(rmsBean, applicationRMMsg);
messageContext = createSeqRMMessage.getMessageContext();
messageContext.setWSAAction(SpecSpecificConstants.getCreateSequenceAction(Sandesha2Constants.SPEC_VERSIONS.v1_1));
CreateSequence createSeqResPart = (CreateSequence) createSeqRMMessage
.getMessagePart(Sandesha2Constants.MessageParts.CREATE_SEQ);
createSeqResPart.setAcksTo(
new AcksTo(new EndpointReference(AddressingConstants.Final.WSA_NONE_URI),
SpecSpecificConstants.getRMNamespaceValue(rmsBean.getRMVersion()),
AddressingConstants.Final.WSA_NAMESPACE));
// Update the SOAP Envelope of the message
createSeqRMMessage.addSOAPEnvelope();