while (iterator.hasNext()) {
SenderBean tempBean = (SenderBean) iterator.next();
// updating the application message
String key = tempBean.getMessageContextRefKey();
MessageContext applicationMsg = storageManager.retrieveMessageContext(key, configCtx);
// TODO make following exception message more understandable to the
// user (probably some others exceptions messages as well)
if (applicationMsg == null)
throw new SandeshaException(SandeshaMessageHelper.getMessage(SandeshaMessageKeys.unavailableAppMsg));