to fix mistakenly modified in commit fd8cac57 related issue: https://github.com/spring-projects/spring-ai/issues/1828

Comment From: ilayaperumalg

@jiao-duan Thanks for finding the issue and the detailed description. @mxsl-gr Thanks for the PR to fix the issue.