When Spring bean is registered using `ConfigurableListableBeanFactory.registerSingleton()` method, it's not available in `ApplicationContext.getBeanDefinitionNames()`.

Is it by design? Maybe I can use some other method to get registered beans?