this.session = session;
}
public String getMailSmtpHost() {
try {
Configuration config = (Configuration)session.get(Configuration.class, 1L);
if (config == null){
throw new ConfigurationException("Missing configuration entry");
}
return config.getMailSmtpHost();
} catch (Throwable e) {
throw new ConfigurationException("Error getting MailSmtpHost", e);
}
}