code: public void addDependency(Service service) {
          assertDuringInitialization();
          LOG.info("Adding a dependency on {} to {}", service.getName(), getName());
          addDependsOn(service);
          service.addDependedBy(this);
      }
docs: Adds a service this service depends on.
  @param service The service this service depends on.