jersey2-guice-impl/src/main/java/com/squarespace/jersey2/guice/JerseyGuiceUtils.java
public static ServiceLocator link(ServiceLocator locator, Injector injector) {
    
    Map<Key<?>, Binding<?>> bindings = gatherBindings(injector);
    Set<Binder> binders = toBinders(bindings);
    
    return link(locator, injector, binders);
  }
public static ServiceLocator link(ServiceLocator locator, Injector injector) {
    
    Map<Key<?>, Binding<?>> bindings = gatherBindings(injector);
    Set<Binder> binders = toBinders(bindings);
    
    return link(locator, injector, binders);
  }
This method links the {@link Injector} to the {@link ServiceLocator}.