public void visit(Entry entry) {
		final AFreeplaneAction action = new EntryAccessor().getAction(entry);
		if (action != null) {
			final EntryAccessor entryAccessor = new EntryAccessor();
			String accelerator = entryAccessor.getAccelerator(entry);
			if(accelerator != null) {
				map.setDefaultAccelerator(action, accelerator);
			}
			else
				map.setUserDefinedAccelerator(action);
			entries.registerEntry(action, entry);
		}
	}
@Test
	public void registersEntryWithAction() {
		Entry actionEntry = new Entry();
		final AFreeplaneAction action = mock(AFreeplaneAction.class);
		new EntryAccessor().setAction(actionEntry, action);

		IAcceleratorMap map = mock(IAcceleratorMap.class);
		EntriesForAction entries = mock(EntriesForAction.class);
		final AcceleratorBuilder acceleratorBuilder = new AcceleratorBuilder(map, entries);
		acceleratorBuilder.visit(actionEntry);
		
		Mockito.verify(entries).registerEntry(action, actionEntry);

	}