public Icon getIcon(final Entry entry) {
        if (entry.getAttribute(ICON_INSTANCE) != null)
            return entry.getAttribute(ICON_INSTANCE);
        String key = (String) entry.getAttribute(ICON);
        if (key == null) {
			String name = entry.getName();
			key = name + ".icon";
		}
        final Icon icon = resourceAccessor.getIcon(key);
        return icon;

	}
@Test
	public void getsIconFromEntryAttributeIcon() throws Exception {
		final Icon icon = new ImageIcon();
		entry.setAttribute(EntryAccessor.ICON_INSTANCE, icon);
		final Icon entryIcon = entryAccessor.getIcon(entry);
		assertThat(entryIcon, equalTo(icon));
	}