protected void overrideFactoryBeanCreateInstanceFactoryMethod(final Bean bean) {
Checker.notNull("parameter:bean", bean);
final Type beanType = bean.getType();
final String factoryMethodName = bean.getFactoryMethod();
final Method factoryMethod = beanType.findMethod(factoryMethodName, Collections.<Type>emptyList() );
if (null == factoryMethod || false == factoryMethod.isStatic() || factoryMethod.getVisibility() != Visibility.PUBLIC) {
this.throwFactoryMethodNotFound(bean, factoryMethodName);
}
this.getGeneratorContext().debug("FactoryBean will create new instance by calling " + factoryMethod);