notifier.addSink(new SMTPMessageSink(), Property.getPropertyBoolean(new SystemConfigKey("smtp.startOnStartup")));
} catch (Exception e) {
e.printStackTrace();
throw new ServletException("Failed to add SMTP message sink.", e);
}
notifier.addSink(new AgentMessageSink(), true);
}