// stack another time, so terminate.
terminate = env.getProgramRecursionCount(this.getThenProgram()) >= this.recursionLimit;
//handle the case of exception on recursion limit reached
if (terminate && this.exceptionOnRecursionLimit){
throw new TeiidComponentException("ERR.015.006.0039", QueryPlugin.Util.getString("ERR.015.006.0039")); //$NON-NLS-1$ //$NON-NLS-2$
}
}
return !terminate;
}