}
//final String clientId = command.getClientId(facesContext);
final boolean disabled = ComponentUtils.getBooleanAttribute(command, Attributes.DISABLED);
final LabelWithAccessKey label = new LabelWithAccessKey(command);
final AbstractUIMenu dropDownMenu = FacetUtils.getDropDownMenu(command);
final ResourceManager resources = getResourceManager();
final String labelPosition = getLabelPosition(command.getParent());
final String iconSize = getIconSize(command.getParent());
final String iconName = (String) command.getAttributes().get(Attributes.IMAGE);
final boolean lackImage = iconName == null;
final String image = lackImage ? null : getImage(facesContext, iconName, iconSize, disabled, selected);
final boolean showIcon = !UIToolBar.ICON_OFF.equals(iconSize);
final boolean iconBig = UIToolBar.ICON_BIG.equals(iconSize);
final boolean showLabelBottom = UIToolBar.LABEL_BOTTOM.equals(labelPosition);
final boolean showLabelRight = UIToolBar.LABEL_RIGHT.equals(labelPosition);
final boolean showLabel = showLabelBottom || showLabelRight;
final boolean showDropDownMenu = dropDownMenu != null && dropDownMenu.isRendered();
// two separate buttons for the command and the sub menu
final boolean separateButtons = hasAnyCommand(command) && showDropDownMenu;
final Measure paddingTop = resources.getThemeMeasure(facesContext, toolBar, "custom.padding-top");
final Measure paddingMiddle = resources.getThemeMeasure(facesContext, toolBar, "custom.padding-middle");