// This fetch limits the number of resources that can be returned to protect against fetching a massive
// number of children for a parent. Doing so may cause an unacceptably slow tree rendering, too much vertical
// scroll, or perhaps even hang the gui if it consumed too many resources. To see all children the
// user will need to visit the Inventory->Children view for the resource.
ResourceCriteria criteria = new ResourceCriteria();
criteria.addFilterParentResourceId(Integer.parseInt(parentResourceId));
// we must sort the results to ensure that if cropped we at least show the same results each time
criteria.addSortName(PageOrdering.ASC);
resourceService.findResourcesByCriteriaBounded(criteria, -1, -1, new AsyncCallback<List<Resource>>() {
public void onFailure(Throwable caught) {