Map<String, Resource> definitionMappings = new HashMap<String, Resource>();
Set<Entry<Object, Object>> set = properties.entrySet();
for (Entry<Object, Object> entry : set) {
String key = (String) entry.getKey();
String value = (String) entry.getValue();
Resource resource = getResource(value);
definitionMappings.put(key, resource);
}
return definitionMappings;
};