If the bean discovery mode is `annotated` then: