String internalSequenceId = (String) internalSequenceBean.getValue();
//removing retransmitterMgr entries
SenderBean findRetransmitterBean = new SenderBean ();
findRetransmitterBean.setInternalSequenceId(internalSequenceId);
Collection collection = retransmitterBeanMgr.find(findRetransmitterBean);
Iterator iterator = collection.iterator();
while (iterator.hasNext()) {
SenderBean retransmitterBean = (SenderBean) iterator.next();
retransmitterBeanMgr.delete(retransmitterBean.getMessageId());
}