artembilan/spring-integration — comment on commit 6707bc6ed751f83645a5954de180304c42dc8825
File: spring-integration-core/src/main/java/org/springframework/integration/config/xml/HeaderEnricherParserSupport.java line 140
By artembilan:

So, maybe it will be enough to add check for

if (subElements != null && subElements.size() == 1) {

before reading any inner component?
Щr what do you mean by "simpler way"?