JobImpl<?> job = (JobImpl<?>) dbSession.get(JobImpl.class, jobDbid);
// in case of decision jobs, the job might have been deleted
// before we execute it (they are in a list)
if (job != null) {
JobContext jobContext = new JobContext(job);
environment.setContext(jobContext);
try {
log.debug("executing job "+job+"...");
job.execute(environment);
log.debug("executed job "+job);