}
XmlDocument document = xmlService.getDocument(file);
String xmlId = href.substring(hashLocation+1);
XmlSection section = document.getById(xmlId);
XmlSectionModel mSection = new XmlSectionModel(section);
return new AuthoredPopupLink(wicketId, xmlId, mSection);
} else if (wicketId.startsWith("noteBackLink_")) {
// Link back from a note to its (first) noteref.
String idref = elt.getAttribute("idref");
// Find candidate noterefs in this chapter