BrixNode node = getNode();
BrixNode parent = (BrixNode) node.getParent();
node.remove();
try {
parent.save();
selectNode(parent, true);
}
catch (JcrException e) {
if (e.getCause() instanceof ReferentialIntegrityException) {
parent.getSession().refresh(false);