org.springframework.core.io.Resource[] resources = resolver.getResources(collectionResourcePath);
for (org.springframework.core.io.Resource resource : resources) {
URL url = resource.getURL();
String name = getLocalUrlAsResourceName(url);
Resource r = getResourceForPath(name, localeProvider, url);
if (r != null) {
String path = url.getPath();
int sepIndex = path.lastIndexOf(File.separator);
if (sepIndex != -1)
path = path.substring(sepIndex + 1);
resourceMapping.put(path, r.getExternalUrl());
String alternateId = PREFIX_COLLECTION_ENTRY + collectionPrefix + ":"
+ path;
_resourceEntriesByResourcePath.put(alternateId, r);
}