Modified NewBeanNameGenerator but has some issues.