I suppose we should optimize this method a bit, even if it looks like copy/paste:
````java
try {
	field = extractTarget(getField(endpoint, "handler"));
	if (field == monitor.getMessageHandler()) {
		name = beanName;
		endpointName = beanName;
		break;
	}
}
catch (Exception e) {
	logger.trace("Could not get handler from bean = " + beanName);
}
Object wrapped = this.extractTarget(this.handlerInAnonymousWrapper(field));
if (wrapped == monitor.getMessageHandler()) {
	name = beanName;
	endpointName = beanName;
	break;
}
````