endFragment(currentProgram, element);
}
private static RecurseProgramCondition buildRecurseCondition(MappingRecursiveElement element, Program subProgram) {
String criteriaString = element.getCriteria();
RecurseProgramCondition condition = null;
if (criteriaString == null || criteriaString.trim().length() == 0){
condition = new RecurseProgramCondition(subProgram, null, element.getRecursionLimit(), element.throwExceptionOnRecurrsionLimit());
}
else {
condition = new RecurseProgramCondition(subProgram, element.getCriteriaNode(), element.getRecursionLimit(), element.throwExceptionOnRecurrsionLimit());
}
return condition;
}