MessageHistory skips the Handlers annotated with MessageEndpoint.
When using the xml declaration we have an option to name the Handler:
<router id="myRouter" ref="myRouterBean" .../>
If we switch this example to using Annotations you will loose the ability of naming the Handler,
and then the MessageHistory will skip the Handler, as it's name will be auto-generated and it will
start with 'org.springframework.integration'.
The Spring Integration annotations such as @Transformer, @ServiceActivator, and all other annotation
that end up creating a Handler, should have an id attribute to behave like the id attribute from
their XML counterparts.