code: public static void invokeServiceAdded(ServiceConfig cfg, Service<?, ?> service) {
          requireNonNull(cfg, "cfg");
          requireNonNull(service, "service");
  
          try {
              service.serviceAdded(cfg);
          } catch (Exception e) {
              throw new IllegalStateException(
                      "failed to invoke serviceAdded() on: " + service, e);
          }
      }
docs: Invokes {@link Service#serviceAdded(ServiceConfig)}.