markfisher/spring-integration — comment on commit 17431b92c6d0a823f3c21beee075083e5b3c1df2
File: spring-integration-core/src/main/java/org/springframework/integration/transformer/ContentEnricher.java line 113
By markfisher:

I don't really understand what you're suggesting. This component is strictly targeted at the case where an *inbound* Message payload is to be enriched. If creating a new object is okay, then a simple Transformer can be used (e.g. using a prototype bean or new X() in SpEL). Regarding the clone option, that will only be applied if the payload *implements Cloneable* AND the boolean flag is set. So, developers have full control of whether cloning will apply.