Program: 143760
Project: 143760
Buggy source:
private static void createTabPanelHTML(TabPanel tabPanel,Form form,StringBuffer html,TextualCSS css,int startY,int endY,boolean enableAnchoring,IServiceProvider sp){
  TextualStyle styleObj=css.addStyle('#' + ComponentFactory.getWebID(form,tabPanel));
  BorderAndPadding borderAndPadding=applyBaseComponentProperties(tabPanel,form,styleObj,null,null,sp);
  applyLocationAndSize(tabPanel,styleObj,borderAndPadding,startY,endY,form.getSize().width,enableAnchoring);
  styleObj.remove("String_Node_Str");
  html.append("String_Node_Str");
  html.append(getWicketIDParameter(form,tabPanel));
  html.append(getCSSClassParameter("String_Node_Str"));
  html.append("String_Node_Str");
  if (tabPanel.getTabOrientation() != TabPanel.HIDE && tabPanel.getTabOrientation() != TabPanel.SPLIT_HORIZONTAL && tabPanel.getTabOrientation() != TabPanel.SPLIT_VERTICAL && !(tabPanel.getTabOrientation() == TabPanel.DEFAULT && tabPanel.hasOneTab())) {
    html.append("String_Node_Str");
    html.append("String_Node_Str");
    html.append("String_Node_Str");
    html.append("String_Node_Str");
    html.append("String_Node_Str");
    Iterator<IPersist> it=tabPanel.getAllObjects();
    if (it.hasNext()) {
      Tab tab=(Tab)it.next();
      html.append("String_Node_Str");
      html.append("String_Node_Str");
      html.append(getSafeText(tab.getText()));
      html.append("String_Node_Str");
    }
 else {
      html.append("String_Node_Str");
      html.append("String_Node_Str");
      html.append("String_Node_Str");
      html.append("String_Node_Str");
    }
    html.append("String_Node_Str");
  }
  TextualStyle style=new TextualStyle();
  style.setProperty("String_Node_Str","String_Node_Str");
  style.setProperty("String_Node_Str","String_Node_Str");
  boolean bAddTabContainerClass=false;
  if (tabPanel.getBorderType() == null) {
    if (!tabPanel.hasOneTab() && tabPanel.getTabOrientation() != TabPanel.HIDE) {
      bAddTabContainerClass=true;
    }
  }
 else {
    ComponentFactoryHelper.createBorderCSSProperties(tabPanel.getBorderType(),styleObj);
  }
  if (tabPanel.getTabOrientation() == TabPanel.SPLIT_HORIZONTAL || tabPanel.getTabOrientation() == TabPanel.SPLIT_VERTICAL) {
    String tabPanelMarkupId=ComponentFactory.getWebID(form,tabPanel);
    StringBuffer leftPanelStyle=new StringBuffer("String_Node_Str");
    StringBuffer rightPanelStyle=new StringBuffer("String_Node_Str");
    if (tabPanel.getTabOrientation() == TabPanel.SPLIT_HORIZONTAL) {
      leftPanelStyle.append("String_Node_Str");
      rightPanelStyle.append("String_Node_Str");
    }
 else {
      leftPanelStyle.append("String_Node_Str");
      rightPanelStyle.append("String_Node_Str");
    }
    html.append("String_Node_Str").append(tabPanelMarkupId).append("String_Node_Str").append(leftPanelStyle).append("String_Node_Str").append(tabPanelMarkupId).append("String_Node_Str").append(leftPanelStyle).append("String_Node_Str" + getCSSClassParameter("String_Node_Str") + "String_Node_Str");
    html.append("String_Node_Str").append(tabPanelMarkupId).append("String_Node_Str").append(rightPanelStyle).append("String_Node_Str" + getCSSClassParameter("String_Node_Str") + "String_Node_Str");
  }
 else {
    html.append("String_Node_Str").append(style.toString());
    if (bAddTabContainerClass)     html.append(getCSSClassParameter("String_Node_Str"));
 else     html.append(getCSSClassParameter("String_Node_Str"));
    html.append("String_Node_Str");
  }
  html.append("String_Node_Str");
}

Fixed version (ground truth):
private static void createTabPanelHTML(TabPanel tabPanel,Form form,StringBuffer html,TextualCSS css,int startY,int endY,boolean enableAnchoring,IServiceProvider sp){
  TextualStyle styleObj=css.addStyle('#' + ComponentFactory.getWebID(form,tabPanel));
  BorderAndPadding borderAndPadding=applyBaseComponentProperties(tabPanel,form,styleObj,null,null,sp);
  applyLocationAndSize(tabPanel,styleObj,borderAndPadding,startY,endY,form.getSize().width,enableAnchoring);
  styleObj.remove("String_Node_Str");
  html.append("String_Node_Str");
  html.append(getWicketIDParameter(form,tabPanel));
  html.append(getCSSClassParameter("String_Node_Str"));
  html.append("String_Node_Str");
  if (tabPanel.getTabOrientation() != TabPanel.HIDE && tabPanel.getTabOrientation() != TabPanel.SPLIT_HORIZONTAL && tabPanel.getTabOrientation() != TabPanel.SPLIT_VERTICAL && !(tabPanel.getTabOrientation() == TabPanel.DEFAULT && tabPanel.hasOneTab())) {
    html.append("String_Node_Str");
    html.append("String_Node_Str");
    html.append("String_Node_Str");
    html.append("String_Node_Str");
    html.append("String_Node_Str");
    Iterator<IPersist> it=tabPanel.getAllObjects();
    if (it.hasNext()) {
      Tab tab=(Tab)it.next();
      html.append("String_Node_Str");
      html.append("String_Node_Str");
      html.append(getSafeText(tab.getText()));
      html.append("String_Node_Str");
    }
 else {
      html.append("String_Node_Str");
      html.append("String_Node_Str");
      html.append("String_Node_Str");
      html.append("String_Node_Str");
    }
    html.append("String_Node_Str");
  }
  TextualStyle style=new TextualStyle();
  style.setProperty("String_Node_Str","String_Node_Str");
  style.setProperty("String_Node_Str","String_Node_Str");
  boolean bAddTabContainerClass=false;
  if (tabPanel.getBorderType() == null) {
    if (!tabPanel.hasOneTab() && tabPanel.getTabOrientation() != TabPanel.HIDE) {
      bAddTabContainerClass=true;
    }
  }
 else {
    ComponentFactoryHelper.createBorderCSSProperties(tabPanel.getBorderType(),styleObj);
  }
  if (tabPanel.getTabOrientation() == TabPanel.SPLIT_HORIZONTAL || tabPanel.getTabOrientation() == TabPanel.SPLIT_VERTICAL) {
    String tabPanelMarkupId=ComponentFactory.getWebID(form,tabPanel);
    StringBuffer leftPanelStyle=new StringBuffer("String_Node_Str");
    StringBuffer rightPanelStyle=new StringBuffer("String_Node_Str");
    if (tabPanel.getTabOrientation() == TabPanel.SPLIT_HORIZONTAL) {
      leftPanelStyle.append("String_Node_Str");
      rightPanelStyle.append("String_Node_Str");
    }
 else {
      leftPanelStyle.append("String_Node_Str");
      rightPanelStyle.append("String_Node_Str");
    }
    html.append("String_Node_Str").append(tabPanelMarkupId).append("String_Node_Str").append(leftPanelStyle).append("String_Node_Str").append(tabPanelMarkupId).append("String_Node_Str").append(leftPanelStyle).append("String_Node_Str").append(getCSSClassParameter("String_Node_Str")).append("String_Node_Str");
    html.append("String_Node_Str").append(tabPanelMarkupId).append("String_Node_Str").append(rightPanelStyle).append("String_Node_Str").append(getCSSClassParameter("String_Node_Str")).append("String_Node_Str");
  }
 else {
    html.append("String_Node_Str").append(style.toString());
    if (bAddTabContainerClass)     html.append(getCSSClassParameter("String_Node_Str"));
 else     html.append(getCSSClassParameter("String_Node_Str"));
    html.append("String_Node_Str");
  }
  html.append("String_Node_Str");
}