Template nh = (Template)rule.getAction();
XPathContextMajor c2 = evaluationContext.newContext();
c2.setOrigin(NextMatch.this);
c2.setLocalParameters(params);
c2.setTunnelParameters(tunnelParams);
c2.openStackFrame(nh.getStackFrameMap());
// System.err.println("Tail call on template");
return nh.applyLeavingTail(c2, rule);
}