//don't move it to an observer due to an unpredictable invocation order
public static void postRenderCleanup(FacesContext facesContext)
{
BeanManager beanManager = BeanManagerProvider.getInstance().getBeanManager();
EditableWindowContextManager windowContextManager =
CodiUtils.getContextualReferenceByClass(beanManager, EditableWindowContextManager.class);
WindowContextConfig windowContextConfig =
CodiUtils.getContextualReferenceByClass(beanManager, WindowContextConfig.class);