@Override
	public void visit(Entry entry) {
	    if(Boolean.FALSE.equals(entry.getAttribute("allowed")))
	        return;
		if (containsSubmenu(entry))
			addSubmenu(entry);
		else
			addActionItem(entry);
	}
@Test
	public void whenPopupMenuBecomesVisible_itsChildActionPopupListenerIsCalled() {
		if(Compat.isMacOsX())
			return;
		menuEntry.addChild(actionEntry);
		menuActionGroupBuilder.visit(menuEntry);
		JMenu item = (JMenu) new EntryAccessor().getComponent(menuEntry);
		item.getPopupMenu().setVisible(true);
		verify(popupListener).childEntriesWillBecomeVisible(actionEntry);
	}