List<TreeModel> insert = new ArrayList<TreeModel>();
for (M model : (List<M>) le.getData()) {
insert.add(wrap(model));
}
if (le.<Object> getConfig() instanceof ListLoadConfig) {
ListLoadConfig config = le.getConfig();
if (config.getSortInfo().getSortField() != null) {
sortInfo = config.getSortInfo();
} else {
sortInfo = new SortInfo();
}
}
doInsert(rootWrapper, insert, 0, false, true);