void (String newElementName) { final XPathVariableReference child = XPathChangeUtil.createVariableReference(this, newElementName); final PrefixedNameImpl newName = ((PrefixedNameImpl)child.getQName()); final PrefixedNameImpl oldName = ((PrefixedNameImpl)getQName()); assert newName != null; assert oldName != null; final ASTNode localNode = newName.getLocalNode(); getNode().replaceChild(oldName.getLocalNode(), localNode); }