https://build.spring.io/browse/INT-MJATS41-856 According the attempts to read method from class in the proper order, there is a fix in SF to do that via ASM. Therefore `beanDefinition.getSource()` isn't `StandardMethodMetadata` any more. Fortunately we can simply assert against `returnTypeName` to check for the `MessageHandler` See https://jira.spring.io/browse/SPR-14505 **Cherry-pick to 4.3.x**