code: public static String getClassName(Resource resource) {
          try {
              return getClassName(resource.getFile().getAbsolutePath());
          } catch (IOException e) {
              return null;
          }
      }
docs: Gets the class name of the specified Micronaut resource.
  
  @param resource The Spring Resource
  @return The class name or null if the resource is not a Micronaut class