LOG.debug("Changing Permission on node: " + pathToChange);
ExtendedNode chNode = (ExtendedNode) session.getItem(pathToChange);
if (!chNode.isNodeType("exo:privilegeable"))
{
if (chNode.canAddMixin("exo:privilegeable"))
chNode.addMixin("exo:privilegeable");
else
throw new RepositoryException("Can't add mixin");
}
// log.info("PERMS-SIZE:" + permissions.length);