String theFragment = fragment == null ? null
: substituteMapped(fragment, map, true, fromEncoded);
return buildURI(fromEncoded, thePath, theQuery, theFragment);
} catch (URISyntaxException ex) {
throw new UriBuilderException("URI can not be built", ex);
}
}