Using ApplicationContextAware and BeanNameAware