public void init(ServletConfig config) throws ServletException {
super.init(config);
try {
String configFile = resolveConfigFile();
System.out.println(this.getClass().getCanonicalName() + " being initialized using configfile " + configFile);
this.config = new ConfigReader(configFile);
if (this.config.developmentMode()) {
this.errorReporter = new ErrorReporingToSystemErr();
} else {
this.errorReporter = new ErrorReporterViaEmail(this.config);
}