code: private boolean canDelegate(RequestDelegationService delegate, HttpServletRequest request) {
          try {
              return delegate.canDelegate(request);
          } catch (Exception e) {
              log.log(Level.SEVERE,
                  String.format("The delegation service can't check the delegability of the request: %s", e.getCause()),
                  e.getCause());
              return false;
          }
      }
docs: Checks whether the given service can serve given request.