@Override
    public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException {
        registerObject(bean);
        return bean;
    }
@ Override public Object postProcessAfterInitialization ( Object bean , String beanName ) throws BeansException { registerObject ( bean ) ; return bean ; }
Automatically registers any container-managed bean with the framework.

@param bean Object to register.
@param beanName Name of the managed bean.