@Override
    public void destroy() {
        for (NameResolverRegistry registry : this.registries) {
            for (NameResolverProvider provider : this.providers) {
                registry.deregister(provider);
                log.debug("{} was removed from the NameResolverRegistry", provider);
            }
        }
        this.registries.clear();
    }
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