See https://github.com/spring-projects/spring-framework/pull/29775#issuecomment-1852557532 This should also build on top of #31737