methodGen.addLocalVariable("parentNode",
Util.getJCRefType("I"),
il.getEnd(), null);
// Get the 'parameter' from the stack and store it in a local var.
il.append(new ISTORE(parentNode.getIndex()));
il.append(methodGen.loadDOM());
il.append(new ILOAD(parentNode.getIndex()));
il.append(new INVOKEINTERFACE(getNodeIdent, 2));
il.append(new ISTORE(parentNode.getIndex()));
// Save current node and current iterator on the stack
il.append(methodGen.loadCurrentNode());
il.append(methodGen.loadIterator());