if (uibdh.isEnableApplicationMainNavBar()) {
final UIDiv desktopNavbarWrapper = new UIDiv();
desktopNavbarWrapper.setId(DESKTOPNAVBARWRAPPER_ID);
for (UIComponent uIComponent : uibdh.getChildren()) {
if (uIComponent instanceof UIBodyDesktopAppNavBar) {
UIBodyDesktopAppNavBar tmp = (UIBodyDesktopAppNavBar) uIComponent;
desktopNavbarWrapper.getChildren().add(tmp);
if (tmp.getStyle() != null){
desktopNavbarWrapper.setStyle(tmp.getStyle());
tmp.setStyle(null);
}
if (tmp.getStyleClass() != null){
desktopNavbarWrapper.setStyleClass(tmp.getStyleClass());
tmp.setStyleClass(null);
}
}
}
uibdh.getChildren().add(desktopNavbarWrapper);
} else {