The code snippet below shows how to create an object from a String.
Java Code:
Class [] classParm = null;
Object [] objectParm = null;
         
try {
  String name = "com.rgagnon.MyClass";
  Class cl = Class.forName(name);
  java.lang.reflect.Constructor co = cl.getConstructor(classParm);
  return co.newInstance(objectParm);
  }
catch (Exception e) {
  e.printStackTrace();
  return null;
}