That should probably become `getBeanDefinition(…)` to prevent the bean to be instantiated too early.