return list;
}
if(model instanceof TemplateCollectionModel) {
TemplateCollectionModel coll = (TemplateCollectionModel)model;
ArrayList list = new ArrayList();
TemplateModelIterator it = coll.iterator();
while(it.hasNext()) {
list.add(unwrap(it.next(), nullModel, permissive));
}
return list;
}
if(model instanceof TemplateHashModelEx) {
TemplateHashModelEx hash = (TemplateHashModelEx)model;
HashMap map = new HashMap();
TemplateModelIterator keys = hash.keys().iterator();
while(keys.hasNext()) {
String key = (String)unwrap(keys.next(), nullModel, permissive);
map.put(key, unwrap(hash.get(key), nullModel, permissive));
}
return map;
}
if (permissive) {