AssetResolver assetResolver = getProtocol(context).getMarinerPageContext()
.getAssetResolver();
PageURIRewriter uriRewriter = getProtocol(context).getMarinerPageContext()
.getPageURIRewriter();
if (!uriRewriter.willPossiblyRewrite(PageURLType.ANCHOR)) {
// If the URL is not to be rewritten using page URI rewriter
// for which the current state of the page context is important,
// simply create a LinkAssetReference in standard way.
// The URL will be rewritten by PageURLRewriter when the
// getUrl() method gets called.