public void registerJob(final Task task, final String jobClassName, final String cronExpression)
throws ClassNotFoundException, SchedulerException, ParseException {
Class jobClass = Class.forName(jobClassName);
Job jobInstance = (Job) ApplicationContextProvider.getBeanFactory().
createBean(jobClass, AbstractBeanDefinition.AUTOWIRE_BY_TYPE, false);
if (jobInstance instanceof AbstractTaskJob) {
((AbstractTaskJob) jobInstance).setTaskId(task.getId());
}
if (jobInstance instanceof SyncJob && task instanceof SyncTask) {