try {
tree = publication.getTree(area);
} catch (SiteTreeException e) {
throw new BuildException(e);
}
SiteTreeNode node = tree.getNode(documentid);
Label[] labels = node.getLabels();
DocumentBuilder builder = publication.getDocumentBuilder();
try {
if (labels.length < 1) {
log("no languages found for the node with id : " + node.getId());
url = builder.buildCanonicalUrl(publication, area, documentid);
writeDCIdentifier(publication, url);
} else {
for (int i = 0; i < labels.length; i++) {
language = labels[i].getLanguage();