Map<String, List<String>> retMap = new HashMap<String, List<String>>();
for (T obj : list) {
List<String> val = retMap.get("def");
if (val == null) {
val = new ArrayList<String>();
<BUG>}
val.add(StringUtils.trim(obj.getResource()));
retMap.put("def", val);</BUG>
}
<BUG>return retMap;
}</BUG>
return null;

Map<String, List<String>> retMap = new HashMap<String, List<String>>();
for (T obj : list) {
List<String> val = retMap.get("def");
if (val == null) {
val = new ArrayList<String>();
