code: public static String getSimpleName(FileObject fo) {
          URI uri = fo.toUri();
          String s = uri.getSchemeSpecificPart();
          return s.substring(s.lastIndexOf("/") + 1); // safe when / not found
  
      }
docs: Return the last component of a presumed hierarchical URI.
  From the scheme specific part of the URI, it returns the substring
  after the last "/" if any, or everything if no "/" is found.
  @param fo the file object
  @return the simple name of the file object