if (contains(document)) {
throw new SiteException("The document [" + document + "] is already contained!");
}
SiteTree tree = getTree(document);
Label label = new Label("", document.getLanguage());
SiteTreeNode node = tree.getNode(document.getId());
if (node == null) {
Label[] labels = { label };
tree.addNode(document.getId(), labels, null, null, false);