AE: Adding an option so that the TemplateAPGenerator can be specified in the module file