Should it be @Configuration instead of @Component, so that Spring could pick up beans?
@Configuration
@Component