addToolbarItem(contextNode, site, jahiaUser, locale, uiLocale, request, gwtToolbarItemsList, subItem);
}
} else {
// add only item that the user can view
logger.debug("Item: " + item.getId());
Visibility visibility = item.getVisibility();
// add only visible items
if ((visibility != null && visibility.getRealValue(contextNode, jahiaUser, locale, request)) || visibility == null) {
GWTJahiaToolbarItem gwtToolbarItem = createGWTItem(site, jahiaUser, locale, uiLocale, request, item);
if (gwtToolbarItem != null) {
gwtToolbarItemsList.add(gwtToolbarItem);
}
} else {