code: @SuppressWarnings("null")
    private @NotNull IntegratorMode getIntegratorMode(ValueMap properties) {
      IntegratorMode mode = null;
      Collection<IntegratorMode> integratorModes = urlHandlerConfig.getIntegratorModes();
      String modeString = properties.get(IntegratorNameConstants.PN_INTEGRATOR_MODE, String.class);
      if (StringUtils.isNotEmpty(modeString)) {
        for (IntegratorMode candidate : integratorModes) {
          if (StringUtils.equals(modeString, candidate.getId())) {
            mode = candidate;
            break;
          }
        }
      }
      // fallback to first mode defined in configuration
      if (mode == null && !integratorModes.isEmpty()) {
        mode = integratorModes.iterator().next();
      }
      return mode;
    }
docs: Read integrator mode from content container. Defaults to first integrator mode defined.
  @param properties Content container
  @return Integrator mode