code: private void detectIntegratorTemplateModes() {
      // integrator mode cannot be active if no modes defined
      if (urlHandlerConfig.getIntegratorModes().isEmpty()) {
        return;
      }
      if (request != null && RequestPath.hasSelector(request, SELECTOR_INTEGRATORTEMPLATE_SECURE)) {
        integratorTemplateSecureMode = true;
      }
      else if (request != null && RequestPath.hasSelector(request, SELECTOR_INTEGRATORTEMPLATE)) {
        integratorTemplateMode = true;
      }
    }
docs: Detect integrator template modes - check selectors in current url.