code: public static Object createInstanceFromClassname(String className,
                                                       Class<?>[] argClasses,
                                                       Object[] args)
              throws JournalException {
  
          try {
              Class<?> clazz = Class.forName(className);
              Constructor<?> constructor = clazz.getConstructor(argClasses);
              return constructor.newInstance(args);
          } catch (Exception e) {
              throw new JournalException(e);
          }
      }
docs: Create an instance of the named class.
  
  @param className
  The classname of the desired instance
  @param argClasses
  What types of arguments are required by the constructor?
  @param args
  Arguments to provide to the instance constructor.
  @return the new instance created