code: public Node getScopeRoot() {
      int roots = scopeRoots.size();
      if (roots > 0) {
        return scopeRoots.get(roots - 1);
      } else {
        AbstractScope<?, ?> s = scopes.peek();
        return s != null ? s.getRootNode() : null;
      }
    }
docs: Returns the current scope's root.