throw new DocumentException(e);
}
}
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
.getByUuid(getUUID(), getLanguage()).getNode().getPath(), getLanguage());
} catch (SiteException e) {
throw new RuntimeException(e);
}
}