// base class) into the new component instance's constructor
cf.addMethod(Modifier.PUBLIC, NEW_INSTANCE_SIGNATURE,
String.format("return new %s($1, constructorArgs);", componentClassName));
Class instantiatorClass = cf.createClass();
try
{
Object instance = instantiatorClass.getConstructors()[0].newInstance(componentModel,
String.format("Instantiator[%s]", componentClassName), componentConstructorArgs);