presto-spi/src/main/java/io/prestosql/spi/HostAddress.java/HostAddress/fromUri
class HostAddress:    public static HostAddress fromUri(URI httpUri)
    {
        String host = httpUri.getHost();
        int port = httpUri.getPort();
        if (port < 0) {
            return fromString(host);
        }
        else {
            return fromParts(host, port);
        }
    }