}
}
public DocumentLocator getLocator() {
SiteStructure structure = area().getSite();
if (!structure.containsByUuid(getUUID(), getLanguage())) {
throw new RuntimeException("The document [" + this
+ "] is not referenced in the site structure.");
}
try {
return DocumentLocator.getLocator(getPublication().getId(), getArea(), structure