if (node != null) {
SiteTreeNode parentNode = sectree.getNode(parentId.toString());
if (parentNode != null) {
sectree.move(node, parentNode, 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();