if (node != null) {
SiteTreeNode parentNode = sectree.getNode(parentid);
if (parentNode != null) {
sectree.importSubtree(parentNode, node, newid, this.getRefdocumentid());
} else {
throw new SiteTreeException(
"The parent node "
+ parentNode
+ " where the removed node shall be inserted not found");
}
} else {
throw new SiteTreeException(
"Node " + node + " couldn't be removed");
}
if (firstarea.equals(secarea)) {
firsttree.save();