We need to call the getBeanFactory() method.