docs: public static Resource getFileResource(String filePath) {
          String path;
  
          if (filePath.contains(FILE_PATH_CHARSET_PARAMETER)) {
              path = filePath.substring(0, filePath.indexOf(FileUtils.FILE_PATH_CHARSET_PARAMETER));
          } else {
              path = filePath;
          }
  
          if (path.startsWith(ResourceUtils.FILE_URL_PREFIX)) {
              return new FileSystemResource(path.substring(ResourceUtils.FILE_URL_PREFIX.length() - 1));
          } else if (path.startsWith(ResourceUtils.CLASSPATH_URL_PREFIX)) {
              return new PathMatchingResourcePatternResolver().getResource(path);
          }
  
          Resource file = new FileSystemResource(path);
          if (!file.exists()) {
              return  new PathMatchingResourcePatternResolver().getResource(path);
          }
  
          return file;
      }