As #32214 has shown and as explained in https://github.com/Christopher-Chianelli/issue-reproducer/pull/1/files, using the wrong callback (and therefore the wrong way of registering a bean programmatically) may lead to beans being ignored. We should improve the documentation to help users to figure this out.