NextMsgBeanMgr nextMsgBeanMgr = storageManager.getNextMsgBeanMgr();
//removing nextMsgMgr entries
NextMsgBean findNextMsgBean = new NextMsgBean ();
findNextMsgBean.setSequenceId(sequenceID);
Collection collection = nextMsgBeanMgr.find(findNextMsgBean);
Iterator iterator = collection.iterator();
while (iterator.hasNext()) {
NextMsgBean nextMsgBean = (NextMsgBean) iterator.next();
nextMsgBeanMgr.delete(nextMsgBean.getSequenceId());
}