This way  even if it has been determined in the "findPathMatchingResources" method that the protocol is not VFS and the call is delegated to the parent Spring class PathMatchingPatternResourceResolver, when the "convertClassLoaderURL" is called on VFSServletContextResourcePatternResolver (since this method is overriden there) it does not try to use VFSUtil to load the resource but instead delegates again the work to the spring parent.