continue;
}
task.setDescription(job.getDescription());
JobSchedule schedule = null;
if (job.getSchedule() != null && !job.getSchedule().trim().equals("")) {
schedule = new JobSchedule();
schedule.setEnabled(true);
schedule.setScheduleData(job.getSchedule());
schedule.setType(JobSchedule.TYPE_CRON);
}
Job schedulerJob = getScheduler().addCustomTaskJob(jobName, task, false, schedule);
schedulerJob.setDescription(job.getDescription());
schedulerJob.getOptions().put("database", db.getDbReference());