@Override
public boolean unlock() throws CaoException {
try {
LockManager manager = node.getSession().getWorkspace().getLockManager();
if (!manager.holdsLock(node.getPath()))return false;
manager.unlock(node.getPath());
return true;
} catch (RepositoryException e) {
throw new CaoException(e);
}
}