in src/main/java/org/apache/commons/configuration2/io/VFSFileSystem.java [212:230]
public URL getURL(final String basePath, final String file) throws MalformedURLException {
if (basePath != null && UriParser.extractScheme(basePath) == null || basePath == null && UriParser.extractScheme(file) == null) {
return super.getURL(basePath, file);
}
try {
final FileName path;
if (basePath != null && UriParser.extractScheme(file) == null) {
final FileName base = resolveURI(basePath);
path = getManager().resolveName(base, file);
} else {
path = resolveURI(file);
}
final URLStreamHandler handler = new VFSURLStreamHandler();
return new URL(null, path.getURI(), handler);
} catch (final FileSystemException fse) {
throw new ConfigurationRuntimeException("Could not parse basePath: " + basePath + " and fileName: " + file, fse);
}
}