ArrayList list = new ArrayList();
Iterator itList = result.iterator();
while (itList.hasNext()) {
Map actual = (Map) itList.next();
ColumnModel model = ((TreeGridProxy)this.getProxy()).getCallback().getGrid().getColumnModel();
BaseTreeModel baseModel;
if (Boolean.TRUE.equals(actual.get(ParamsConst.IS_DIRECTORY))) {
Context.getInstance().addDetailExecution("Instanciando Folder");
baseModel = new Folder();
} else {
Context.getInstance().addDetailExecution("Instanciando Music");
baseModel = new Music();
}
List columns = model.getColumns();
Iterator it = columns.iterator();
while (it.hasNext()) {
ColumnConfig columnConfig = (ColumnConfig) it.next();
baseModel.set(columnConfig.getId(), actual.get(columnConfig.getId()));
}
list.add(baseModel);
}
TreeLoadEvent evt = new TreeLoadEvent(this, loadConfig, list);