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);
}
viewer = new FreemarkerTemplateViewer(this.config.templateFolder());
initOnlyOnce();