As far as `IntegrationRegistrar` is `@Import` from `@EnableIntegration` the `importingClassMetadata` will be always non-null. From other side I use a trick from `AnnotationConfigParser`. That's why `annotation detection` is here always, if we have deal with annotations: or using `@EnableIntegration` or `<annotation-config/>`