* @param nodeCtx The GroovyContext for this state.
* @return The effective GroovyContext for the path leading up to
* document root.
*/
private GroovyContext getEffectiveContext(final GroovyContext nodeCtx) {
return new GroovyContext(new EffectiveContextMap(nodeCtx), this);
}