code: public static Resource getJar(@NonNull Class<?> clazz) {
        URL fileURL = clazz.getProtectionDomain().getCodeSource().getLocation();
        return new FileResource(fileURL.getFile());
     }
docs: Gets the jar file that a class is stored in.
  
  @param clazz The class whose associated jar file is descried.
  @return The Resource (jar file) for the class