// get the "execute" method from the class object
Method cmdMethod = cmdCls.getMethod("execute");
// create an instance of the command class using the instance of the event class created
// earlier
ConsoleCommand command = cmdCtor.newInstance(event);
// invoke the "execute" method on the command object
cmdMethod.invoke(command);