for (DescriptorMenu descriptorMenu : sortedMenus) {
int count = descriptorMenu.getComponentClassCount();
if (count <= 1) {
// disregard categories with only a single component in
// them!
ComponentCategory category = descriptorMenu.getComponentCategory();
logger.info("Disregarding menu for category '{}' because of too few components ({})", category, count);
descriptorMenus.remove(category);
} else {
// add menu
add(descriptorMenu);