static String createConnectionURL(String url, boolean ssl) throws SQLException {
        if (url.startsWith("//")) {
            url = (ssl ? "https:" : "http:") + url;
        }

        try {
            URI tmp = URI.create(url);
            return tmp.getScheme() + "://" + tmp.getAuthority();
        } catch (Exception e) {
            throw new SQLException("Failed to parse url", e);
        }
    }
Returns normalized URL that can be passed as parameter to Client#addEndpoint().
Returned url has only schema and authority and doesn't have query parameters or path.
JDBC URL should have only a single path parameter to specify database name.
Note: Some BI tools do not let pass JDBC URL, so ssl is passed as property.
@param url - JDBC url
@param ssl - if SSL protocol should be used when protocol is not specified
@return URL without JDBC prefix
jdbc-v2/src/main/java/com/clickhouse/jdbc/internal/JdbcConfiguration.java