docs: @Deprecated
      public static ResponseStateManager getResponseStateManager(
              FacesContext facesContext, String renderKitId)
              throws FacesException
      {
          RenderKit renderKit = facesContext.getRenderKit();
  
          if (renderKit == null)
          {
              // look for the renderkit in the request
              Map attributesMap = facesContext.getAttributes();
              RenderKitFactory factory = (RenderKitFactory) attributesMap
                      .get(RENDER_KIT_IMPL);
  
              if (factory != null)
              {
                  renderKit = factory.getRenderKit(facesContext, renderKitId);
              }
              else
              {
                  factory = (RenderKitFactory) FactoryFinder
                          .getFactory(FactoryFinder.RENDER_KIT_FACTORY);
  
                  if (factory == null)
                  {
                      throw new IllegalStateException("Factory is null");
                  }
  
                  attributesMap.put(RENDER_KIT_IMPL, factory);
  
                  renderKit = factory.getRenderKit(facesContext, renderKitId);
              }
          }
  
          if (renderKit == null)
          {
              throw new IllegalArgumentException(
                      "Could not find a RenderKit for \"" + renderKitId + "\"");
          }
  
          return renderKit.getResponseStateManager();
      }