private void cleanupAfterView ( ) { FacesContext ctx = FacesContext . getCurrentInstance ( ) ; ResponseWriter orig = ( ResponseWriter ) ctx . getAttributes ( ) . get ( ORIGINAL_WRITER ) ; assert ( null != orig ) ; // move aside the PartialResponseWriter ctx . setResponseWriter ( orig ) ; }
Copied from com . sun . faces . context . PartialViewContextImpl .