docs: public static void scanPath(String path) {
      log.debug("Scanning classpath for JSONObjects under path '{}'", path);
      final ClassPathScanningCandidateComponentProvider provider = new ClassPathScanningCandidateComponentProvider(false);
      provider.addIncludeFilter(new AssignableTypeFilter(JSONObject.class));
  
      // scan in the passed-in path
      final Set<BeanDefinition> components = provider.findCandidateComponents(path);
      for (final BeanDefinition component : components)
        try {
          final Class<?> cls = Class.forName(component.getBeanClassName());
          final JSONObject message = (JSONObject) cls.newInstance();
          JSONUtil.register(message);
        } catch (final Exception ex) {
          log.error("Could not instantiate class: {}", ex, component.getBeanClassName());
        }
    }