PathInfo pathInfo = new PathInfo(reference, container, markupStream);
// Try to find the Page matching the href
// Note: to not use tag.getId() because it will be modified while
// resolving the link and hence the 2nd render will fail.
Component link = resolveAutomaticLink(pathInfo, WicketLinkTagHandler.AUTOLINK_ID, tag);
if (log.isDebugEnabled())
{
log.debug("Added autolink " + link);
}