} catch (IOException e2) {
log.error("Notifier failed to initialise.", e2);
throw new ServletException(e2);
}
try {
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);