Program: 5472
Project: 5472
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public int doStartTag() throws JspException {
  if (this.autoForm == null) {
    setAutoForm(this.pageContext.getRequest().getAttribute("String_Node_Str"));
  }
  AjahUtils.requireParam(this.autoForm,"String_Node_Str");
  try {
    final JspWriter out=this.pageContext.getOut();
    final Div div=new Div().css("String_Node_Str");
    final Enumeration<String> attributes=this.pageContext.getRequest().getAttributeNames();
    while (attributes.hasMoreElements()) {
      final String attribute=attributes.nextElement();
      if (attribute.startsWith("String_Node_Str")) {
        final BindingResult result=(BindingResult)this.pageContext.getRequest().getAttribute(attribute);
        log.fine("String_Node_Str" + result.getErrorCount() + "String_Node_Str");
        final Div alertBox=div.add(new Div().css("String_Node_Str").css("String_Node_Str"));
        final UnorderedList errs=alertBox.add(new UnorderedList().css("String_Node_Str"));
        for (        final ObjectError error : result.getAllErrors()) {
          errs.add(new ListItem(getMessage(error)));
        }
      }
    }
    final Form form=new Form(FormMethod.POST).css("String_Node_Str").css("String_Node_Str");
    if (!StringUtils.isBlank(getId())) {
      form.setId(getId());
    }
    for (    final Field field : this.autoForm.getClass().getFields()) {
      log.fine(field.getName() + "String_Node_Str" + field.get(this.autoForm));
      final Input<?> input=getInput(field,this.autoForm.getClass().getFields());
      form.getInputs().add(input);
    }
    String submitText=null;
    if (this.autoForm.getClass().isAnnotationPresent(Submit.class)) {
      submitText=this.autoForm.getClass().getAnnotation(Submit.class).value();
    }
    if (StringUtils.isBlank(submitText)) {
      submitText=StringUtils.capitalize(StringUtils.splitCamelCase(this.autoForm.getClass().getSimpleName().replaceAll("String_Node_Str","String_Node_Str")));
    }
    final Input<InputImpl> input=new InputImpl("String_Node_Str",submitText,InputType.SUBMIT).css("String_Node_Str").css("String_Node_Str");
    form.getInputs().add(input);
    div.add(form);
    final Script script=new Script();
    final StringBuffer code=new StringBuffer();
    code.append("String_Node_Str");
    for (    final Input<?> child : form.getInputs()) {
      if (child instanceof TextArea && ((TextArea)child).isHtml()) {
        this.pageContext.getRequest().setAttribute("String_Node_Str",Boolean.TRUE);
        code.append("String_Node_Str" + "String_Node_Str");
        break;
      }
    }
    code.append("String_Node_Str" + form.getInputs().get(0).getId() + "String_Node_Str");
    code.append("String_Node_Str");
    script.setText(code.toString());
    div.add(script);
    div.render(out,isCompact() ? -1 : 0);
  }
 catch (  final IOException e) {
    throw new JspException(e);
  }
catch (  final IllegalArgumentException e) {
    throw new JspException(e);
  }
catch (  final IllegalAccessException e) {
    throw new JspException(e);
  }
  return Tag.EVAL_PAGE;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public int doStartTag() throws JspException {
  if (this.autoForm == null) {
    setAutoForm(this.pageContext.getRequest().getAttribute("String_Node_Str"));
  }
  AjahUtils.requireParam(this.autoForm,"String_Node_Str");
  try {
    final JspWriter out=this.pageContext.getOut();
    final Div div=new Div().css("String_Node_Str");
    final Enumeration<String> attributes=this.pageContext.getRequest().getAttributeNames();
    while (attributes.hasMoreElements()) {
      final String attribute=attributes.nextElement();
      if (attribute.startsWith("String_Node_Str")) {
        final BindingResult result=(BindingResult)this.pageContext.getRequest().getAttribute(attribute);
        log.fine("String_Node_Str" + result.getErrorCount() + "String_Node_Str");
        if (result.getErrorCount() > 0) {
          final Div alertBox=div.add(new Div().css("String_Node_Str").css("String_Node_Str"));
          final UnorderedList errs=alertBox.add(new UnorderedList().css("String_Node_Str"));
          for (          final ObjectError error : result.getAllErrors()) {
            errs.add(new ListItem(getMessage(error)));
          }
        }
      }
    }
    final Form form=new Form(FormMethod.POST).css("String_Node_Str").css("String_Node_Str");
    if (!StringUtils.isBlank(getId())) {
      form.setId(getId());
    }
    for (    final Field field : this.autoForm.getClass().getFields()) {
      log.fine(field.getName() + "String_Node_Str" + field.get(this.autoForm));
      final Input<?> input=getInput(field,this.autoForm.getClass().getFields());
      form.getInputs().add(input);
    }
    String submitText=null;
    Icon iconLeft=null;
    Icon iconRight=null;
    if (this.autoForm.getClass().isAnnotationPresent(Submit.class)) {
      Submit submit=this.autoForm.getClass().getAnnotation(Submit.class);
      submitText=submit.value();
      if (submit.iconLeft() != null && submit.iconLeft() != Icon.NONE) {
        iconLeft=submit.iconLeft();
      }
      if (submit.iconRight() != null && submit.iconRight() != Icon.NONE) {
        iconRight=submit.iconRight();
      }
    }
    if (StringUtils.isBlank(submitText)) {
      submitText=StringUtils.capitalize(StringUtils.splitCamelCase(this.autoForm.getClass().getSimpleName().replaceAll("String_Node_Str","String_Node_Str")));
    }
    final Button submitButton=new Button().text(submitText).type(ButtonType.SUBMIT).css("String_Node_Str").css("String_Node_Str");
    if (iconLeft != null) {
      submitButton.addBeforeText(new Italic().css(iconLeft.getBootstrapClass()));
    }
    if (iconRight != null) {
      submitButton.add(new Italic().css(iconRight.getBootstrapClass()));
    }
    form.getInputs().add(submitButton);
    div.add(form);
    final Script script=new Script();
    final StringBuffer code=new StringBuffer();
    code.append("String_Node_Str");
    for (    final Input<?> child : form.getInputs()) {
      if (child instanceof TextArea && ((TextArea)child).isHtml()) {
        this.pageContext.getRequest().setAttribute("String_Node_Str",Boolean.TRUE);
        code.append("String_Node_Str" + "String_Node_Str");
        break;
      }
    }
    code.append("String_Node_Str" + form.getInputs().get(0).getId() + "String_Node_Str");
    code.append("String_Node_Str");
    script.setText(code.toString());
    div.add(script);
    div.render(out,isCompact() ? -1 : 0);
  }
 catch (  final IOException e) {
    throw new JspException(e);
  }
catch (  final IllegalArgumentException e) {
    throw new JspException(e);
  }
catch (  final IllegalAccessException e) {
    throw new JspException(e);
  }
  return Tag.EVAL_PAGE;
}