@ConditionalOnMissingBean
    @Lazy
    @Bean
    NameResolverRegistration grpcNameResolverRegistration(
            @Autowired(required = false) final List<NameResolverProvider> nameResolverProviders) {
        final NameResolverRegistration nameResolverRegistration = new NameResolverRegistration(nameResolverProviders);
        nameResolverRegistration.register(NameResolverRegistry.getDefaultRegistry());
        return nameResolverRegistration;
    }
Creates a new NameResolverRegistration. This ensures that the NameResolverProvider's get unregistered when spring
shuts down. This is mostly required for tests/when running multiple application contexts within the same JVM.

@param nameResolverProviders The spring managed providers to manage.
@return The newly created NameResolverRegistration bean.
grpc-client-spring-boot-starter/src/main/java/net/devh/boot/grpc/client/autoconfigure/GrpcClientAutoConfiguration.java