Program: 15999
Project: 15999
Buggy source:
public void render(final Radio item,final Object data,final int index) throws Exception {
  final Radiogroup radiogroup=item.getRadiogroup();
  final int size=radiogroup.getModel().getSize();
  final Template tm=resolveTemplate(radiogroup,item,data,index,size,"String_Node_Str");
  if (tm == null) {
    item.setLabel(Objects.toString(data));
    item.setValue(data);
  }
 else {
    final ForEachStatus iterStatus=new AbstractForEachStatus(){
      private static final long serialVersionUID=1L;
      public int getIndex(){
        return index;
      }
      public Object getEach(){
        return data;
      }
      public Integer getEnd(){
        return size;
      }
    }
;
    final String var=(String)tm.getParameters().get(EACH_ATTR);
    final String varnm=var == null ? EACH_VAR : var;
    final String itervar=(String)tm.getParameters().get(STATUS_ATTR);
    final String itervarnm=itervar == null ? (var == null ? EACH_STATUS_VAR : varnm + STATUS_POST_VAR) : itervar;
    Object oldVar=radiogroup.getAttribute(varnm);
    Object oldIter=radiogroup.getAttribute(itervarnm);
    radiogroup.setAttribute(varnm,data);
    radiogroup.setAttribute(itervarnm,iterStatus);
    final Component[] items=tm.create(radiogroup,item,null,null);
    radiogroup.setAttribute(varnm,oldVar);
    radiogroup.setAttribute(itervarnm,oldIter);
    if (items.length != 1)     throw new UiException("String_Node_Str" + items.length);
    final Radio nr=(Radio)items[0];
    nr.setAttribute(BinderImpl.VAR,varnm);
    nr.setAttribute(AbstractRenderer.IS_TEMPLATE_MODEL_ENABLED_ATTR,true);
    nr.setAttribute(AbstractRenderer.CURRENT_INDEX_RESOLVER_ATTR,iterStatus);
    addItemReference(radiogroup,nr,index,varnm);
    nr.setAttribute(itervarnm,iterStatus);
    nr.setAttribute(TemplateResolver.TEMPLATE_OBJECT,item.removeAttribute(TemplateResolver.TEMPLATE_OBJECT));
    addTemplateTracking(radiogroup,nr,data,index,size);
    if (nr.getValue() == null)     nr.setValue(data);
    item.setAttribute("String_Node_Str",nr);
    item.detach();
  }
}

Fixed version (ground truth):
public void render(final Radio item,final Object data,final int index) throws Exception {
  final Radiogroup radiogroup=item.getRadiogroup();
  final int size=radiogroup.getModel().getSize();
  final Template tm=resolveTemplate(radiogroup,item,data,index,size,"String_Node_Str");
  if (tm == null) {
    item.setLabel(Objects.toString(data));
    item.setValue(data);
  }
 else {
    final ForEachStatus iterStatus=new AbstractForEachStatus(){
      private static final long serialVersionUID=1L;
      public int getIndex(){
        return index;
      }
      public Object getEach(){
        return data;
      }
      public Integer getEnd(){
        return size;
      }
    }
;
    final String var=(String)tm.getParameters().get(EACH_ATTR);
    final String varnm=var == null ? EACH_VAR : var;
    final String itervar=(String)tm.getParameters().get(STATUS_ATTR);
    final String itervarnm=itervar == null ? (var == null ? EACH_STATUS_VAR : varnm + STATUS_POST_VAR) : itervar;
    Object oldVar=radiogroup.getAttribute(varnm);
    Object oldIter=radiogroup.getAttribute(itervarnm);
    radiogroup.setAttribute(varnm,data);
    radiogroup.setAttribute(itervarnm,iterStatus);
    final Component[] items=tm.create(radiogroup,item,null,null);
    radiogroup.setAttribute(varnm,oldVar);
    radiogroup.setAttribute(itervarnm,oldIter);
    if (items.length != 1)     throw new UiException("String_Node_Str" + items.length);
    final Radio nr=(Radio)items[0];
    nr.setAttribute(BinderImpl.VAR,varnm);
    addItemReference(radiogroup,nr,index,varnm);
    nr.setAttribute(itervarnm,iterStatus);
    nr.setAttribute(TemplateResolver.TEMPLATE_OBJECT,item.removeAttribute(TemplateResolver.TEMPLATE_OBJECT));
    addTemplateTracking(radiogroup,nr,data,index,size);
    if (nr.getValue() == null)     nr.setValue(data);
    item.setAttribute("String_Node_Str",nr);
    item.detach();
  }
}