public <T> void registerOverrideService(Class<T> type, T service) {
    if (overriddenRegisteredClasses.containsKey(type)) {
      getMonitor()
          .info(
              () ->
                  format(
                      "Re-overriding type %s from %s to %s",
                      type, overriddenRegisteredClasses.get(type), service));
    }
    overriddenRegisteredClasses.put(type, service);
  }
An {@link ExtensionContext} that is able to override registered services
to provide job/service specific values.
portability-api-launcher/src/main/java/org/datatransferproject/api/launcher/DelegatingExtensionContext.java