Open
Description
While trying out the enricher example by using Java DSL, I am unable to replace the payload that contains User object with only username field using the method:
.enrich(p -> p.requestPayloadExpression("payload.username"))
--> https://docs.spring.io/spring-integration/reference/html/content-enrichment.html#payload-enricher
However, the payload functionality works when I use the transform method that takes in an expression parameter
.transform("payload.username")
Is the transform method the only way to update the payload?