public static URI rewriteURI(
            final URI uri,
            final HttpHost target) throws URISyntaxException {
        return rewriteURI(uri, target, false);
    }
A convenience method for
{@link URIUtils#rewriteURI(URI, HttpHost, boolean)} that always keeps the
fragment.
ngrinder-runtime/src/main/java/org/apache/hc/client5/http/utils/URIUtils.java