* @throws SiteTreeException
* if an error occurs
*/
public void deactivateResources(String language, String documentid, String area)
throws SiteTreeException {
Publication publication = getPublication();
SiteTree tree = null;
try {
tree = publication.getTree(area);
SiteTreeNode node = tree.getNode(documentid);
Label[] labels = null;
if (node != null) {
labels = node.getLabels();
}
if (node == null || (labels != null && labels.length < 1)) {
DocumentBuilder builder = publication.getDocumentBuilder();
String url = builder.buildCanonicalUrl(publication, area, documentid, language);
Document doc;
try {
doc = builder.buildDocument(publication, url);
} catch (DocumentBuildException e) {