code: public LockData getExactNodeLock(NodeData node) throws RepositoryException
     {
        if (node == null || !hasLocks())
        {
           return null;
        }
  
        return getLockDataById(node.getIdentifier());
     }
docs: {@inheritDoc}