String (String root, String href) { if (BrowserUtil.isAbsoluteURL(href)) { return href; } String reference = JavaDocInfoGenerator.createReferenceForRelativeLink(href, myElement); if (reference == null) { if (href.startsWith("#")) { return root + href; } else { String nakedRoot = ourHtmlFileSuffix.matcher(root).replaceAll("/"); return doAnnihilate(nakedRoot + href); } } else { return reference; } }