docs: public static URI updateUriHost(URI uri, String newHostPrefix) {
          try {
              return new URI(uri.getScheme(), uri.getUserInfo(), newHostPrefix + uri.getHost(),
                             uri.getPort(), uri.getPath(), uri.getQuery(), uri.getFragment());
          } catch (URISyntaxException e) {
              throw new RuntimeException(e);
          }
      }