Source:
<code>public void init() { <START> if (serverConfigurationService.getBoolean("ses.autosetup", false)) { <END> log.info ("SES AutoImport running"); Scheduler scheduler = schedulerManager.getScheduler(); String[] startups = serverConfigurationService.getStrings("ses.startup"); for (String startup : startups) { try { String jobBean = serverConfigurationService.getString("ses.import."+startup+".jobbean"); SpringJobBeanWrapper job = (SpringJobBeanWrapper)applicationContext.getBean(jobBean); JobDataMap jobData = new JobDataMap(); jobData.put(JobBeanWrapper.SPRING_BEAN_NAME, job.getBeanId()); jobData.put(JobBeanWrapper.JOB_TYPE, job.getJobType()); JobDataMap triggerData = new JobDataMap(); String param; param = serverConfigurationService.getString("ses.import."+startup+".uri"); if (null != param) { triggerData.put("xcri.oxcap.populator.uri", param); } param = serverConfigurationService.getString("ses.import."+startup+".user"); if (null != param) { triggerData.put("xcri.oxcap.populator.username", param); } param = serverConfigurationService.getString("ses.import."+startup+".password"); if (null != param) { triggerData.put("xcri.oxcap.populator.password", param); } param = serverConfigurationService.getString("ses.import."+startup+".name"); if (null != param) { triggerData.put("xcri.oxcap.populator.name", param); } JobDetail jobDetail = new JobDetail(job.getJobType(), null, job.getJobClass()); jobDetail.setJobDataMap(jobData); scheduler.addJob(jobDetail, true); scheduler.triggerJobWithVolatileTrigger(job.getJobType(), null, triggerData); log.info("Triggered job: "+ job.getJobType()); } catch (SchedulerException se) { log.warn("Failed to run job: "+ startup, se); } } } }</code><technical_language>Do rename this bit of configuration? get confusing in future</technical_language>

Target:
public void init() { if (serverConfigurationService.getBoolean("ses.autoimport", false)) { log.info ("SES AutoImport running"); Scheduler scheduler = schedulerManager.getScheduler(); String[] startups = serverConfigurationService.getStrings("ses.startup"); for (String startup : startups) { try { String jobBean = serverConfigurationService.getString("ses.import."+startup+".jobbean"); SpringJobBeanWrapper job = (SpringJobBeanWrapper)applicationContext.getBean(jobBean); JobDataMap jobData = new JobDataMap(); jobData.put(JobBeanWrapper.SPRING_BEAN_NAME, job.getBeanId()); jobData.put(JobBeanWrapper.JOB_TYPE, job.getJobType()); JobDataMap triggerData = new JobDataMap(); String param; param = serverConfigurationService.getString("ses.import."+startup+".uri"); if (null != param) { triggerData.put("xcri.oxcap.populator.uri", param); } param = serverConfigurationService.getString("ses.import."+startup+".user"); if (null != param) { triggerData.put("xcri.oxcap.populator.username", param); } param = serverConfigurationService.getString("ses.import."+startup+".password"); if (null != param) { triggerData.put("xcri.oxcap.populator.password", param); } param = serverConfigurationService.getString("ses.import."+startup+".name"); if (null != param) { triggerData.put("xcri.oxcap.populator.name", param); } JobDetail jobDetail = new JobDetail(job.getJobType(), null, job.getJobClass()); jobDetail.setJobDataMap(jobData); scheduler.addJob(jobDetail, true); scheduler.triggerJobWithVolatileTrigger(job.getJobType(), null, triggerData); log.info("Triggered job: "+ job.getJobType()); } catch (SchedulerException se) { log.warn("Failed to run job: "+ startup, se); } } } }