}
if (el.getQName().equals(TASK)) {
SimpleQuartz simpleQuartz = new SimpleQuartz();
TaskDescription taskDescription =
TaskDescriptionFactory.createTaskDescription(el,
XMLConfigConstants.SYNAPSE_OMNAMESPACE);
if (taskDescription == null) {
handleException("Invalid task - Task description can not be created from :" + el);
return null;
}
simpleQuartz.setName(taskDescription.getName());
simpleQuartz.setTaskDescription(taskDescription);
simpleQuartz.setDescription(taskDescription.getDescription());
return simpleQuartz;
} else {
handleException("Syntax error in the task : wrong QName for the task");
return null;
}