protected DiscoveryClientNameResolver newNameResolver(final String serviceName, final NameResolver.Args args) {
        return new DiscoveryClientNameResolver(serviceName, this.client, args,
                GrpcUtil.SHARED_CHANNEL_EXECUTOR, this.discoveryClientNameResolvers::remove);
    }
Factory method to create the resolver for the given service name.

@param serviceName The service name to create it for.
@param args The NameResolver arguments to use.
@return A newly created DiscoveryClientNameResolver.
grpc-client-spring-boot-starter/src/main/java/net/devh/boot/grpc/client/nameresolver/DiscoveryClientResolverFactory.java