/** * This implementation returns a File reference for the underlying class path * resource, provided that it refers to a file in the file system. */ protected File getFile(URI uri) throws IOException { if (uri.getScheme().startsWith(Urls.PROTOCOL_VFS)) { return VfsResourceDelegate.getResource(uri).getFile(); } return Files.fromUri(uri, getDescription()); }