Fixes #31952

Comment From: pivotal-cla

@bencehornak Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

Comment From: pivotal-cla

@bencehornak Thank you for signing the Contributor License Agreement!

Comment From: sbrannen

Thanks for the PR, @bencehornak.

Unfortunately, I've already done the work.

In the future, you might want to ask before spending your time on a PR.

Comment From: sbrannen

In case you're interested, feel free to check out what I committed in https://github.com/spring-projects/spring-framework/commit/785598629abda944343a02307ad82a79bb31b589 to compare with your work.

There are certainly some similarities. 😉