//Update FACELET_CONTEXT_KEY on FacesContext attribute map, to
//reflect the current facelet context instance
ctx.getFacesContext().getAttributes().put(FaceletContext.FACELET_CONTEXT_KEY, ctxWrapper);
f._root.apply(ctxWrapper, parent);
ctx.getFacesContext().getAttributes().put(FaceletContext.FACELET_CONTEXT_KEY, ctx);
mctx.finalizeForDeletion(parent);
this.markApplied(parent);
// remove the UniqueIdVendor from the stack again
if (pushedUniqueIdVendor)
{