*/
public Object postProcessAfterInitialization(Object bean, String beanName)
throws BeansException {
if (bean instanceof Registrar) {
// save registrars to register them at the end of context loading
Registrar registrar = (Registrar)bean;
registrars.add(registrar);
}
return bean;
}