* Adds a new method to the bean factory being built that populates a map
* with all the factory beans keyed by bean id.
*/
protected void overrideBeanFactoryRegisterFactoryBeans() {
final GeneratorContext context = this.getGeneratorContext();
context.branch();
final NewType beanFactory = this.getBeanFactory();
final Method abstractMethod = beanFactory.getSuperType().getMostDerivedMethod(Constants.REGISTER_FACTORY_BEANS, Collections.<Type>emptyList());
final NewMethod newMethod = abstractMethod.copy(beanFactory);