code: private void renderOption(final WDropdown dropdown, final Object option,
  			final int optionIndex, final XmlStringBuilder html, final Object selectedOption,
  			final boolean renderSelectionsOnly) {
  		boolean selected = Util.equals(option, selectedOption);
  
  		if (selected || !renderSelectionsOnly) {
  			// Get Code and Desc
  			String code = dropdown.getCode(option, optionIndex);
  			String desc = dropdown.getDesc(option, optionIndex);
  
  			// Check for null option (ie null or empty). Match isEmpty() logic.
  			boolean isNull = option == null ? true : (option.toString().length() == 0);
  
  			// Render option
  			html.appendTagOpen("ui:option");
  			html.appendAttribute("value", code);
  			html.appendOptionalAttribute("selected", selected, "true");
  			html.appendOptionalAttribute("isNull", isNull, "true");
  			html.appendClose();
  			html.appendEscaped(desc);
  			html.appendEndTag("ui:option");
  		}
  	}
docs: Renders a single option within the dropdown.
  
  @param dropdown the dropdown being rendered.
  @param option the option to render.
  @param optionIndex the index of the option. OptionGroups are not counted.
  @param html the XmlStringBuilder to paint to.
  @param selectedOption the dropdown's selected option.
  @param renderSelectionsOnly true to only render selected options, false to render all options.