docs: protected String renderRadio(FacesContext facesContext,
                                 UIInput uiComponent,
                                 String value,
                                 boolean disabled,
                                 boolean checked,
                                 boolean renderId,
                                 Integer itemNum)
              throws IOException
      {
          String clientId = uiComponent.getClientId(facesContext);
  
          String itemId = (itemNum == null)? null : clientId + 
                  facesContext.getNamingContainerSeparatorChar() + itemNum;
  
          ResponseWriter writer = facesContext.getResponseWriter();
  
          writer.startElement(HTML.INPUT_ELEM, uiComponent);
  
          if (itemId != null)
          {
              writer.writeAttribute(HTML.ID_ATTR, itemId, null);
          }
          else if (renderId)
          {
              writer.writeAttribute(HTML.ID_ATTR, clientId, null);
          }
          writer.writeAttribute(HTML.TYPE_ATTR, HTML.INPUT_TYPE_RADIO, null);
          writer.writeAttribute(HTML.NAME_ATTR, clientId, null);
  
          if (disabled)
          {
              writer.writeAttribute(HTML.DISABLED_ATTR, HTML.DISABLED_ATTR, null);
          }
  
          if (checked)
          {
              writer.writeAttribute(HTML.CHECKED_ATTR, HTML.CHECKED_ATTR, null);
          }
  
          if (value != null)
          {
              writer.writeAttribute(HTML.VALUE_ATTR, value, null);
          }
          else
          {
              writer.writeAttribute(HTML.VALUE_ATTR, "", null);
          }
          
          Map<String, List<ClientBehavior>> behaviors = null;
          if (uiComponent instanceof ClientBehaviorHolder)
          {
              behaviors = ((ClientBehaviorHolder) uiComponent).getClientBehaviors();
              
              long commonPropertiesMarked = 0L;
              if (isCommonPropertiesOptimizationEnabled(facesContext))
              {
                  commonPropertiesMarked = CommonPropertyUtils.getCommonPropertiesMarked(uiComponent);
              }
              if (behaviors.isEmpty() && isCommonPropertiesOptimizationEnabled(facesContext))
              {
                  CommonPropertyUtils.renderChangeEventProperty(writer, 
                          commonPropertiesMarked, uiComponent);
                  CommonPropertyUtils.renderEventProperties(writer, 
                          commonPropertiesMarked, uiComponent);
                  CommonPropertyUtils.renderFieldEventPropertiesWithoutOnchange(writer, 
                          commonPropertiesMarked, uiComponent);
              }
              else
              {
                  HtmlRendererUtils.renderBehaviorizedOnchangeEventHandler(facesContext, writer, uiComponent, behaviors);
                  if (isCommonEventsOptimizationEnabled(facesContext))
                  {
                      Long commonEventsMarked = CommonEventUtils.getCommonEventsMarked(uiComponent);
                      CommonEventUtils.renderBehaviorizedEventHandlers(facesContext, writer, 
                              commonPropertiesMarked, commonEventsMarked, uiComponent, behaviors);
                      CommonEventUtils.renderBehaviorizedFieldEventHandlersWithoutOnchange(
                          facesContext, writer, commonPropertiesMarked, commonEventsMarked, uiComponent, behaviors);
                  }
                  else
                  {
                      HtmlRendererUtils.renderBehaviorizedEventHandlers(facesContext, writer, uiComponent, behaviors);
                      HtmlRendererUtils.renderBehaviorizedFieldEventHandlersWithoutOnchange(
                              facesContext, writer, uiComponent, behaviors);
                  }
              }
              HtmlRendererUtils.renderHTMLAttributes(writer, uiComponent, 
                      HTML.INPUT_PASSTHROUGH_ATTRIBUTES_WITHOUT_DISABLED_AND_STYLE_AND_EVENTS);
          }
          else
          {
              HtmlRendererUtils.renderHTMLAttributes(writer, uiComponent, 
                      HTML.INPUT_PASSTHROUGH_ATTRIBUTES_WITHOUT_DISABLED_AND_STYLE);
          }
  
          if (isDisabled(facesContext, uiComponent))
          {
              writer.writeAttribute(org.apache.myfaces.shared.renderkit.html.HTML.DISABLED_ATTR, Boolean.TRUE, null);
          }
  
          writer.endElement(HTML.INPUT_ELEM);
  
          return itemId;
      }