HCCommandFactory.createInstance() implemented using reflection.