public void configurateOptionGroup(OptionGroup optionGroup) { if (htmlContentAllowed != null) { optionGroup.setHtmlContentAllowed(htmlContentAllowed); } if (disabledItemIds != null) { for (Object o : disabledItemIds) { optionGroup.setItemEnabled(o, false); } } } }