@Override
public void removeSharedSet() throws VersionException, LockException, ConstraintViolationException, RepositoryException {
if (isShareable()) {
// Remove all of the node is the shared set ...
SharedSet sharedSet = sharedSet();
if (sharedSet.getSize() != 1) {
// There's more than one shared
NodeIterator sharedSetNodes = sharedSet.getSharedNodes();
List<AbstractJcrNode> shared = new ArrayList<AbstractJcrNode>();
while (sharedSetNodes.hasNext()) {
AbstractJcrNode nodeInSharedSet = (AbstractJcrNode)sharedSetNodes.nextNode();
// Check whether the parent is locked or if the session has permissions ...