code: protected boolean isLockedPersisted(NodeData node) throws LockException
     {
        LockData lData = null;
        try
        {
           lData = lockManager.getExactNodeOrCloseParentLock(node);
        }
        catch (RepositoryException e)
        {
           throw new LockException(e.getMessage(), e);
        }
  
        if (lData == null || (!node.getIdentifier().equals(lData.getNodeIdentifier()) && !lData.isDeep()))
        {
           return false;
        }
        return true;
     }
docs: {@inheritDoc}