code: public PathImpl getBestPath()
    {
      /*
      if (_bestPath != null)
        return _bestPath;
        */
  
      ArrayList<PathImpl> pathList = getPathList();
      for (int i = 0; i < pathList.size(); i++) {
        PathImpl path = pathList.get(i);
  
        if (path.exists()) {
          return path;
        }
      }
  
      if (pathList.size() > 0) {
        return pathList.get(0);
      }
  
      return new NotFoundPath(getSchemeMap(), _userPath);
    }
docs: Returns the first matching path.