// Try to re-create job bean from underlying task (useful for managing
// failover scenarios)
if (!ctx.containsBean(bundle.getJobDetail().getKey().getName())) {
Long taskId = JobInstanceLoader.getTaskIdFromJobName(bundle.getJobDetail().getKey().getName());
if (taskId != null) {
TaskDAO taskDAO = ctx.getBean(TaskDAO.class);
SchedTask task = taskDAO.find(taskId);
JobInstanceLoader jobInstanceLoader = ctx.getBean(JobInstanceLoader.class);
jobInstanceLoader.registerJob(task, task.getJobClassName(), task.getCronExpression());
}