This commit adds an AbstractMessageWriterResultHandler#writeBody variant which allows to pass the actual MethodParameter in order to perform proper annotation-based hint resolution with nested generics like with ResponseEntityResultHandler.

Comment From: sdeleuze

Merged via https://github.com/spring-projects/spring-framework/commit/c530745015d5c7031cfcb6f633f3f459ed97935d.