findSenderBean.setTimeToSend(System.currentTimeMillis());
//finding the beans that go with the criteria of the passed SenderBean
//The reSend flag is ignored for this selection, so there is no need to
//set it.
Collection collection = senderBeanMgr.find(findSenderBean);
//removing beans that does not pass the resend test
for (Iterator it=collection.iterator();it.hasNext();) {
SenderBean bean = (SenderBean) it.next();
if (!bean.isReSend() && bean.getSentCount()>0)