Content root = hm.getContent(SchedulerConsts.ROOT_PATH_FOR_JOBS);
Content jobNode = ContentUtil.getOrCreateContent(root, jobName, ItemType.CONTENTNODE);
try
{
JobDefinition retVal = (JobDefinition) Content2BeanUtil.toBean(jobNode, true, JobDefinition.class);
if (retVal != null)
return retVal;
throw new ItemNotFoundException();
}
catch (Content2BeanException e)