if (LOGGER.isDebugEnabled()) {
LOGGER.debug("Entered addRecipients");
}
RecipientType type = RecipientType.TO;
try {
for (Iterator iterator = recipients.keySet().iterator();
iterator.hasNext();) {
type = (RecipientType) iterator.next();
if (LOGGER.isDebugEnabled()) {
LOGGER.debug("Adding recipients: " + type);
}
session.addRecipients(type.name(),
(MessageRecipients) recipients.get(type));
}
} catch (RecipientException ignore) {
// XXX Should never happen with the current implementation.
LOGGER.warn("message-recipient-addition-failed-for", type,