return list;
}
if(model instanceof TemplateCollectionModel) {
TemplateCollectionModel coll = (TemplateCollectionModel)model;
ArrayList<Object> list = new ArrayList<Object>();
TemplateModelIterator it = coll.iterator();
while(it.hasNext()) {
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) {