DelegationResponseWriter delegationResponseWriter) throws IOException {
ResponseWriter originalResponseWriter = facesContext.getResponseWriter();
facesContext.setResponseWriter(delegationResponseWriter);
Renderer delegateRenderer = getDelegateRenderer(facesContext);
delegateRenderer.encodeBegin(facesContext, uiComponent);
delegateRenderer.encodeChildren(facesContext, uiComponent);
delegateRenderer.encodeEnd(facesContext, uiComponent);
facesContext.setResponseWriter(originalResponseWriter);
}