docs: public static URI updateToSecureConnectionIfNeeded(URI uri, IClientConfig config,
  			ServerIntrospector serverIntrospector, Server server) {
  		String scheme = uri.getScheme();
  
  		if (StringUtils.isEmpty(scheme)) {
  			scheme = "http";
  		}
  
  		if (!StringUtils.isEmpty(uri.toString())
  				&& unsecureSchemeMapping.containsKey(scheme)
  				&& isSecure(config, serverIntrospector, server)) {
  			return upgradeConnection(uri, unsecureSchemeMapping.get(scheme));
  		}
  		return uri;
  	}