Sandesha2Constants.SPEC_2007_02.Actions.ACTION_CLOSE_SEQUENCE);
StorageManager storageManager =
SandeshaUtil.getSandeshaStorageManager(serverConfigContext, serverConfigContext.getAxisConfiguration());
RMDBeanMgr rmdBeanMgr = storageManager.getRMDBeanMgr();
String seqID = SandeshaUtil.getUUID();
// Mockup an RMDBean
RMDBean rmdBean = new RMDBean();
rmdBean.setSequenceID(seqID);
rmdBean.setToEndpointReference(new EndpointReference(AddressingConstants.Final.WSA_ANONYMOUS_URL));
rmdBean.setAcksToEndpointReference(new EndpointReference(AddressingConstants.Final.WSA_ANONYMOUS_URL));
rmdBean.setReplyToEndpointReference(new EndpointReference(AddressingConstants.Final.WSA_ANONYMOUS_URL));
rmdBean.setRMVersion(Sandesha2Constants.SPEC_VERSIONS.v1_1);
rmdBean.setServerCompletedMessages(new RangeString());
// Flag that the sequence is terminated.
rmdBean.setTerminated(true);
// Create a transaction and insert the RMSBean
Transaction tran = storageManager.getTransaction();
rmdBeanMgr.insert(rmdBean);
tran.commit();
OutputStream tmpOut2 = connection.getOutputStream();