Does this method mean that we are interested only in `AbstractReplyProducingMessageHandler`?
How about this:
````java
if (bean != null &&
		bean.getClass().isAnonymousClass() &&
		AbstractReplyProducingMessageHandler.class.isAssignableFrom(bean.getClass())) {
````
?