DefaultSiteTree tree = null;
tree = getPublication().getSiteTree(area);
SiteTreeNode node = tree.getNode(documentid);
if (node == null) {
throw new DocumentException(
"Document-id " + documentid + " not found.");
}
Label label = node.getLabel(language);
if (label == null) {
throw new DocumentException(
"Label for language " + language + " not found.");
}
// FIXME: This is somewhat of a hack. The change of the label
// name should not be done by removing the label and readding
// it. Instead the node should probably have a setLabel method