classLoader, PropsValues.MAIL_HOOK_IMPL);
}</BUG>
catch (Exception e) {
_log.error(e, e);
}
<BUG>}
if (_hook == null) {
_hook = _originalHook;</BUG>
}
if (_log.isDebugEnabled()) {

_log.debug("Instantiate " + PropsValues.MAIL_HOOK_IMPL);
}
ClassLoader classLoader =
PACLClassLoaderUtil.getPortalClassLoader();
try {
_hook = (Hook)classLoader.loadClass(
PropsValues.MAIL_HOOK_IMPL).newInstance();
}
catch (Exception e) {
_log.error(e, e);
}
}
if (_log.isDebugEnabled()) {
