}
private Map mapFromList(List urlsApp) {
Map map = new FastMap();
for (Iterator i = urlsApp.iterator(); i.hasNext();) {
UrlDTO urlRole = (UrlDTO) i.next();
String inMapRole = (String) map.get(urlRole.getUrl());
if (inMapRole == null) {
map.put(urlRole.getUrl(), urlRole.getRoleType());
} else {
StringBuilder sb = new StringBuilder(inMapRole).append(",").append(urlRole.getRoleType());
map.put(urlRole.getUrl(), sb.toString());
}
}
urlsApp = null;
return map;
}