// change and the page URI rewriter would return different
// result than expected.
url = assetResolver.rewriteURLWithPageURLRewriter(url, PageURLType.ANCHOR);
try {
url = uriRewriter.rewrite(new URI(url), PageURLType.ANCHOR).toString();
} catch (URISyntaxException e) {
throw new XDIMEException("Invalid URI: " + url, e);
}
// Create an instance of LinkAssetReference with already