*/
private void processExtensions(SMTPSession session, Mail mail) {
if (mail != null && messageHandlers != null) {
try {
for (int i = 0; i < mHandlers.size(); i++) {
MessageHook rawHandler = mHandlers.get(i);
session.getLogger().debug(
"executing james message handler " + rawHandler);
HookResult hRes = rawHandler.onMessage(session,
new MailToMailEnvelopeWrapper(mail));
if (rHooks != null) {
for (int i2 = 0; i2 < rHooks.size(); i2++) {
Object rHook = rHooks.get(i2);