This commit throws an exception in registerResource() if the supplied resource is not a ClassPathResource. See gh-29083