list.add(unwrap(it.next(), permissive));
}
return list;
}
if(model instanceof TemplateHashModelEx) {
TemplateHashModelEx hash = (TemplateHashModelEx)model;
Map map = new LinkedHashMap();
TemplateModelIterator keys = hash.keys().iterator();
while(keys.hasNext()) {
String key = (String)unwrap(keys.next(), permissive);
map.put(key, unwrap(hash.get(key), permissive));
}
return map;
}
if(model == TemplateModel.JAVA_NULL) {
return null;