@Nullable
    private static Endpoint toEndpoint(Node node) {
        if (!Strings.isNullOrEmpty(node.serviceAddress)) {
            return Endpoint.of(node.serviceAddress, node.servicePort);
        } else if (!Strings.isNullOrEmpty(node.address)) {
            return Endpoint.of(node.address, node.servicePort);
        } else {
            return null;
        }
    }
Returns node list by service name.
consul/src/main/java/com/linecorp/armeria/internal/consul/CatalogClient.java