public static String getFilename(String path) {
      if (path == null) {
         return null;
      }
      int separatorIndex = path.lastIndexOf(FOLDER_SEPARATOR);
      return (separatorIndex != -1 ? path.substring(separatorIndex + 1) : path);
   }