@Override
public void writeState(
FacesContext context) throws IOException
{
String viewId = context.getViewRoot().getViewId();
InternalView internal =
_getInternalView(context, viewId);
// As internal views whether they're stateless. If they are, don't
// bother writing anything out.
if ((internal != null) && internal.isStateless(context, viewId))
return;
ExtendedRenderKitService service = _getExtendedRenderKitService(context);
if ((service != null) &&
service.isStateless(context))