@Override
    public DiscoveryResult resolve(@Nullable Object key) {
        Server server = loadBalancer.chooseServer(key);
        return server != null
                ? new DiscoveryResult((DiscoveryEnabledServer) server, loadBalancer.getLoadBalancerStats())
                : DiscoveryResult.EMPTY;
    }
@author Argha C
@since 2/25/21
<p>
Implements a resolver, wrapping a ribbon load-balancer.
zuul-discovery/src/main/java/com/netflix/zuul/discovery/DynamicServerResolver.java