url = new URL(urlString);
prefix = tomcatEtcDir;
}
ClassPathEntry entry = ResourceOracleImpl.createEntryForUrl(logger, url);
assert (entry != null);
ResourceOracleImpl resourceOracle = new ResourceOracleImpl(
Collections.singletonList(entry));
PathPrefixSet pathPrefixSet = new PathPrefixSet();
PathPrefix pathPrefix = new PathPrefix(prefix, null, true);
pathPrefixSet.add(pathPrefix);
resourceOracle.setPathPrefixes(pathPrefixSet);
resourceOracle.refresh(logger);
Map<String, Resource> resourceMap = resourceOracle.getResourceMap();
return resourceMap;
}