.build();
try {
scheduler.addJob(jobDetail, false);
} catch (SchedulerException e) {
throw new SystemIntegrityException("Fail to create quartz job", e);
}
if (enabled) {
Trigger trigger = createJobCronTrigger(jobId, cron, timeZoneId);
try {
scheduler.scheduleJob(trigger);
} catch (SchedulerException e) {
throw new SystemIntegrityException("Fail to schedule quartz job on job creation", e);
}
}
}