public void register(NameResolverRegistry registry) {
        this.registries.add(registry);
        for (NameResolverProvider provider : this.providers) {
            try {
                registry.register(provider);
                log.debug("{} is available -> Added to the NameResolverRegistry", provider);
            } catch (IllegalArgumentException e) {
                log.debug("{} is not available -> Not added to the NameResolverRegistry", provider);
            }
        }
    }
Register all NameResolverProviders in the given registry and store a reference to it for later de-registration.

@param registry The registry to add the providers to.
grpc-client-spring-boot-starter/src/main/java/net/devh/boot/grpc/client/nameresolver/NameResolverRegistration.java