Sets now BeanFactory of Registry.