} else {
Properties configuration = new Properties();
configuration.load(in);
configuration.put("org.quartz.scheduler.instanceName", schedName);
StdSchedulerFactory stdSchedulerFactory = new StdSchedulerFactory();
stdSchedulerFactory.initialize(configuration);
scheduler = stdSchedulerFactory.getScheduler();
}
} catch (IOException e) {
throw new SchedulerException("Unable to load configuration for scheduler " + id + ". Configuration file "
+ quartzConfigurationFile + " exists and was loaded but an error occurred during loading", e);