JcrSharedNodeCache shareableNodeCache = session().shareableNodeCache();
SharedSet sharedSet = shareableNodeCache.getSharedSet(this);
if (sharedSet.getSize() <= 1) {
// There are no shares, so destroy the node and the shared set ...
parent.removeChild(cache, key);
cache.destroy(key);
shareableNodeCache.destroyed(key);
return;
}
// The node being removed is shared to at least two places, so we should remove it from the primary parent,