code: private static final String getFileName(String path) {
          int index = path.lastIndexOf('/');//stop using File.separatorChar as we are not even remotely close to be using that ANYwhere else - apparently. This makes it fail on Windows systems
          int prefixLength = prefixLength(path);
          if (index < prefixLength) return path.substring(prefixLength);
          return path.substring(index + 1);
      }
docs: Stolen ruthlessly from
  {@link File#getName()}