for (Iterator<Map.Entry<String, String>> ite = map.entrySet().iterator(); ite.hasNext();) {
Map.Entry<String, String> entry = ite.next();
String resourcePath = entry.getKey();
String displayName = entry.getValue();
if (registry.resourceExists(resourcePath)) {
Resource resource = registry.get(resourcePath);
if (resource.getProperty(UserMgtConstants.DISPLAY_NAME) == null) {
resource.setProperty(UserMgtConstants.DISPLAY_NAME, displayName);
registry.put(resourcePath, resource);
}