code: public PathImpl getWritePath()
    {
      ArrayList<PathImpl> pathList = getPathList();
  
      if (pathList.size() == 0)
        return new NotFoundPath(getSchemeMap(), _pathname);
      else {
        return pathList.get(0);
      }
    }
docs: Returns the first matching path.