@Override
	public void visit(Entry entry) {
		Component component = componentProvider.createComponent(entry);
		if(component != null){
			final EntryAccessor entryAccessor = new EntryAccessor();
			entryAccessor.setComponent(entry, component);
			final AFreeplaneAction action = entryAccessor.getAction(entry);
			if (action != null) {
				final ActionEnabler actionEnabler = new ActionEnabler(component);
				action.addPropertyChangeListener(actionEnabler);
				entry.setAttribute(actionEnabler.getClass(), actionEnabler);
			}
			final JToolBar container = (JToolBar) new EntryAccessor().getAncestorComponent(entry);
			GridBagConstraints constraints = layoutConstraintsForEntry(entry, component);
			container.add(component, constraints);
		}
	}
@Test
	public void createsVerticalToolbarSeparator() {
		Entry separatorEntry = new Entry();
		separatorEntry.setBuilders(asList("separator"));

		Entry toolbarEntry = new Entry();
		final FreeplaneToolBar toolbar = new FreeplaneToolBar("toolbar", SwingConstants.HORIZONTAL);
		new EntryAccessor().setComponent(toolbarEntry, toolbar);
		toolbarEntry.addChild(separatorEntry);

		final JToolbarComponentBuilder toolbarActionGroupBuilder = new JToolbarComponentBuilder(resourceAccessorMock);
		toolbarActionGroupBuilder.visit(separatorEntry);

		JToolBar.Separator separator = (JToolBar.Separator)new EntryAccessor().getComponent(separatorEntry);

		assertThat(separator.getParent(), CoreMatchers.equalTo((Container)toolbar));
		assertThat(separator.getOrientation(), CoreMatchers.equalTo(SwingConstants.VERTICAL));
	}