if (sequenceReport.getSequenceStatus()!=SequenceReport.SEQUENCE_STATUS_ESTABLISHED)
throw new SandeshaException ("Canot terminate the sequence since it is not active");
StorageManager storageManager = SandeshaUtil.getSandeshaStorageManager(configurationContext);
SequencePropertyBeanMgr seqPropMgr = storageManager.getSequencePropretyBeanMgr();
SequencePropertyBean sequenceIDBean = seqPropMgr.retrieve(internalSequenceID,Sandesha2Constants.SequenceProperties.OUT_SEQUENCE_ID);
if (sequenceIDBean==null)
throw new SandeshaException ("SequenceIdBean is not set");
String sequenceID = sequenceIDBean.getValue();