this.getGeneratorContext().debug("FactoryBean will create new instance by calling " + factoryMethod);
final NewMethod newFactoryMethod = this.createCreateInstanceMethod(bean.getFactoryBean());
final FactoryMethodTemplatedFile body = new FactoryMethodTemplatedFile();
body.setFactoryType(beanType);
body.setFactoryMethod(factoryMethod);
newFactoryMethod.setBody(body);
}