if (index == 0 && isSelectedPage(page)) {
if (index == 0 && isSelectedPage(page) && !getShowRoot()) {
	protected UIComponent getNodeComponent(UIComponent outerContainer,List pages,ICTreeNode page,int row,int depth,int index){		ListItem item = new ListItem();		if (isSelectedPage(page)) {			item.setStyleClass("selected");			if (iSelectedID != null) {				item.setID(iSelectedID);			}		}		if (pages != null) {			int size = pages.size() - 1;			if (index < size) {				if (isSelectedPage((ICTreeNode) pages.get(index + 1))) {					item.setStyleClass("beforeSelected");				}			}			if (index == size && isSelectedPage(page) && !rootSelected) {				item.setStyleClass("lastSelected");			}			if (index > 0) {				if (isSelectedPage((ICTreeNode) pages.get(index - 1))) {					item.setStyleClass("afterSelected");				}			}			if (index == 0 && isSelectedPage(page)) {				item.setStyleClass("firstSelected");			}			if (index == 0 && getShowRoot() && rootSelected && !page.equals(getRootNode())) {				item.setStyleClass("afterSelected");			}		}		outerContainer.getChildren().add(item);		return item;	}