code: @Override
      public UIViewRoot restoreView(FacesContext context, String viewId)
      {
          checkNull(context, "context");
          //checkNull(viewId, "viewId");
  
          Application application = context.getApplication();
          
          ViewHandler applicationViewHandler = application.getViewHandler();
          
          String renderKitId = applicationViewHandler.calculateRenderKitId(context);
  
          UIViewRoot viewRoot = application.getStateManager().restoreView(context, viewId, renderKitId);
  
          return viewRoot;
      }
docs: {@inheritDoc}