public void writeState(FacesContext facesContext,
Object state) throws IOException
{
if (log.isLoggable(Level.FINEST)) log.finest("Entering writeState");
UIViewRoot uiViewRoot = facesContext.getViewRoot();
//save state in response (client)
RenderKit renderKit = getRenderKitFactory().getRenderKit(facesContext, uiViewRoot.getRenderKitId());
ResponseStateManager responseStateManager = renderKit.getResponseStateManager();
responseStateManager.writeState(facesContext, state);
if (log.isLoggable(Level.FINEST)) log.finest("Exiting writeState");