public Session getSession() throws NamingException {
return super.getSession();
}
protected void setup() {
ApplicationConfiguration appConfig =
ServiceLocator.instance().getInstance(
ApplicationConfiguration.class);
// Override default properties
setHost(appConfig.getEmailServerHost());
setPort(appConfig.getEmailServerPort());
setUsername(appConfig.getEmailServerUsername());
setPassword(appConfig.getEmailServerPassword());
setTls(appConfig.useEmailServerTls());
setSsl(appConfig.useEmailServerSsl());
}