private Endpoint getEndpoint(Server server) {
        if (endpoint != null) {
            if (endpoint.hasPort()) {
                warnIfInactivePort(server, endpoint.port());
            }
            return endpoint;
        }
        return defaultEndpoint(server);
    }
Returns a newly-created {@link ConsulUpdatingListenerBuilder} with the specified {@code consulUri}
and {@code serviceName} to build {@link ConsulUpdatingListener}.

@param consulUri the URI of Consul API service
@param serviceName the service name which is registered into Consul.
consul/src/main/java/com/linecorp/armeria/server/consul/ConsulUpdatingListener.java