code: public PathImpl createRoot(SchemeMap schemeMap)
    {
      FilesystemPath restriction = (FilesystemPath) copy();
  
      restriction._schemeMap = schemeMap;
      restriction._root = this;
      restriction._pathname = "/";
      restriction._userPath = "/";
  
      return restriction;
    }
docs: Essentially chroot