list.add(unwrap(seq.get(i), permissive));
}
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;
}