AccessDeniedException, InvalidItemStateException,
RepositoryException {
// check state of this instance
sanityCheck();
LockManager lockMgr = getSession().getWorkspace().getLockManager();
return lockMgr.lock(getPath(), isDeep, isSessionScoped,
sessionContext.getWorkspace().getConfig().getDefaultLockTimeout(), null);
}
/**
* {@inheritDoc}