See https://github.com/spring-projects/spring-framework/issues/31569#issuecomment-1825493324 for background