*
* @param node
*/
private void deleteRecursively(final DOMNode node) throws FrameworkException {
final DeleteNodeCommand deleteNode = StructrApp.getInstance(getWebSocket().getSecurityContext()).command(DeleteNodeCommand.class);
// Delete original node recursively
Set<DOMNode> allChildren = DOMNode.getAllChildNodes(node);
for (DOMNode n : allChildren) {
deleteNode.execute(n);
}
deleteNode.execute(node);
}