if (!unassignedBundleGroup.getBundles().isEmpty()) {
allVisibleBundleGroups.add(unassignedBundleGroup);
}
BundleGroupCriteria bundleGroupCriteria = new BundleGroupCriteria();
bundleGroupCriteria.addFilterIds(visibleBundleGroups.keySet().toArray(new Integer[0]));
bundleService.findBundleGroupsByCriteria(bundleGroupCriteria, new AsyncCallback<PageList<BundleGroup>>() {
public void onFailure(Throwable caught) {
// just log a message, but keep going, this just means we can't show lock icons where applicable
CoreGUI.getErrorHandler().handleError(MSG.view_bundle_tree_loadFailure(), caught);
}