504505506507508509510511512513
for (String allowedEventName : readAllowedEvents(allowedEvents)) { menuItem.addAllowedEvent(allowedEventName); } menuItems.add(menuItem); } catch (Exception e) { menuItems.add(new ErrorMenuItem(e.getMessage())); } } return menuItems; }