public static FileObject createFileSystemRoot(FileObject fileObject) {
    try {
      return fileObject.getFileSystem().getRoot();
    } catch (FileSystemException ex) {
      return null;
    }
  }
Returns the root filesystem of a given file

@param fileObject A file
@return the root filesystem of a given file
olv-vfs/src/main/java/pl/otros/vfs/browser/util/VFSUtils.java