code: @Override
      public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException {
          registerObject(bean);
          return bean;
      }
docs: Automatically registers any container-managed bean with the framework.
  
  @param bean Object to register.
  @param beanName Name of the managed bean.