docs: private static FileReaderWriterFactory createFileReaderWriterFactory(String className,
                                                                           SecorConfig config) throws Exception {
          Class<?> clazz = Class.forName(className);
          if (!FileReaderWriterFactory.class.isAssignableFrom(clazz)) {
              throw new IllegalArgumentException(String.format("The class '%s' is not assignable to '%s'.",
                      className, FileReaderWriterFactory.class.getName()));
          }
  
          try {
              // Try to load constructor that accepts single parameter - secor
              // configuration instance
              return (FileReaderWriterFactory) clazz.getConstructor(SecorConfig.class).newInstance(config);
          } catch (NoSuchMethodException e) {
              // Fallback to parameterless constructor
              return (FileReaderWriterFactory) clazz.newInstance();
          }
      }