@Override
    public void release() {
        PrimeRequestContext requestContext = PrimeRequestContext.getCurrentInstance(getWrapped());
        if (requestContext != null) {
            requestContext.release();
        }

        super.release();

        // just to be sure!
        FacesContext.setCurrentInstance(null);
    }
Custom {@link FacesContextWrapper} to init and release our {@link PrimeRequestContext}.
primefaces/src/main/java/org/primefaces/context/PrimeFacesContext.java