public static URI create(final HttpHost host, final String path) throws URISyntaxException {
        final URIBuilder builder = new URIBuilder(path);
        if (host != null) {
            builder.setHost(host.getHostName()).setPort(host.getPort()).setScheme(host.getSchemeName());
        }
        return builder.build();
    }
Convenience factory method for {@link URI} instances.

@since 5.0
ngrinder-runtime/src/main/java/org/apache/hc/client5/http/utils/URIUtils.java