Map alreadyParsedTemplates = MapUtil.map();
List allResources = resourceManager().allResources();
for (int index = 0, length = allResources.size(); index < length; index++) {
AWResource resource = (AWResource)allResources.get(index);
String relativePath = resource.relativePath();
if (relativePath == null) {
logWarning("**** Skipping malformed resource: " + resource);
}
else if (!relativePath.equals(alreadyParsedTemplates.get(relativePath))) {
alreadyParsedTemplates.put(relativePath, relativePath);