public void doJob() {
   try {
     SystemEmailTemplateServiceImpl templateService =
         Spring.getBeanOfType(SystemEmailTemplateServiceImpl.class);
     templateService.generateAllSystemEmailTemplates();
   } catch (RuntimeException re) {
     Logger.error(re, "Unable to initialize system email templates.");
   }
 }
 public void doJob() {
   SystemEmailTemplateServiceImpl templateService =
       Spring.getBeanOfType(SystemEmailTemplateServiceImpl.class);
   templateService.generateAllSystemEmailTemplates();
 }