if (sub != null) {
// lets find all the containers that contain this message
for (Iterator iter = messageContainers.values().iterator(); iter.hasNext();) {
MessageContainer container = (MessageContainer) iter.next();
if (container.containsMessage(ack.getMessageIdentity())) {
sub.redeliverMessage(container, ack);
// we only need to redeliver the message from one container
break;
}
}