docs: @Override
      public void handleException(HttpServletRequest req, HttpServletResponse rsp, Throwable wse) throws ServletException, IOException, ClassCastException {
          WebReply reply = ((WebSecurityCollaboratorException) (wse)).getWebReply();
          int sc = reply.getStatusCode();
  
          // Throw an exception if an error
          if (sc == HttpServletResponse.SC_INTERNAL_SERVER_ERROR) {
              String method = null;
              if (req != null) {
                  method = req.getMethod();
              }
              String url = getRequestURL(req);
  
              final ServletException ex = new ServletException(TraceNLS.getFormattedMessage(
                                                                                            this.getClass(),
                                                                                            TraceConstants.MESSAGE_BUNDLE,
                                                                                            "SEC_WEB_INTERNAL_SERVER_ERROR",
                                                                                            new Object[] { method, url },
                                                                                            "CWWKS9115E: The server encountered an unexpected condition which prevented it from fulfilling the request of method {0} for URL {1}. Review the server logs for more information."), wse);
              throw ex;
          }
          reply.writeResponse(rsp);
      }