docs: public ErrorPage getErrorPageByExceptionType(Throwable rootException) {
          // Begin 256281
          // Check for a perfect match first
          String exceptionName = rootException.getClass().getName();
          Object obj = exceptionErrorPages.get(exceptionName);
          if (obj != null)
              return (ErrorPage) obj;
          // Check to see if its a child of another exception type in the list
          Iterator i = exceptionErrorPages.values().iterator();
          ErrorPage curEP = null;
          ClassLoader warClassLoader = getWebApp().getClassLoader();
          while (i.hasNext()) {
              ErrorPage ep = (ErrorPage) i.next();
              // Class exceptionClass = ep.getException();
              Class exceptionClass = ep.getException(warClassLoader);
              if (exceptionClass != null && exceptionClass.isInstance(rootException)) {
                  if (curEP == null)
                      curEP = ep;
                  // else if
                  // (curEP.getException().isAssignableFrom(exceptionClass))
                  // //PK52168
                  else if (curEP.getException(warClassLoader).isAssignableFrom(exceptionClass)) // PK52168
                      curEP = ep;
              }
          }
          return curEP;
          // End 256281
      }