@Nullable
    public static String getFilename(@Nullable String path) {
        if (path == null) {
            return null;
        }

        int separatorIndex = path.lastIndexOf(FOLDER_SEPARATOR_CHAR);
        return (separatorIndex != -1 ? path.substring(separatorIndex + 1) : path);
    }
Extract the filename from the given Java resource path,
e.g. {@code "mypath/myfile.txt" &rarr; "myfile.txt"}.

@param path the file path (may be {@code null})
@return the extracted filename, or {@code null} if none
analyzer/src/main/java/nl/basjes/parse/useragent/utils/springframework/util/StringUtils.java