Program: 184258
Project: 184258
Buggy source:
protected void generateWindow() throws Exception {
  prepareAttachments();
  prepareGroovyScripts();
  if (pageFlow == null) {
    showMessage("String_Node_Str",Notification.TYPE_WARNING_MESSAGE);
    return;
  }
  for (  Page page : pageFlow.getPages().getPages()) {
    TableStyle ts=barResource.getTableStyle(page);
    GridLayout gridLayout=new GridLayout(ts.getColumns(),ts.getRows());
    gridLayout.setMargin(false,true,true,true);
    gridLayout.setSpacing(true);
    for (    Object wg : page.getWidgets().getWidgetsAndGroups()) {
      Component component=null;
      if (wg instanceof Widget) {
        Widget widget=(Widget)wg;
        component=getComponent(widget);
        components.put(component,widget);
        fields.put("String_Node_Str" + widget.getId(),component);
        ComponentStyle componentStyle=ts.getElements().get(widget.getId());
        int fColumn=componentStyle.getPosition().getFColumn();
        int fRow=componentStyle.getPosition().getFRow();
        int tColumn=componentStyle.getPosition().getTColumn();
        int tRow=componentStyle.getPosition().getTRow();
        CSSProperty cssProperty=componentStyle.getCss();
        if (cssProperty != null) {
        }
 else {
          if (!(component instanceof Table) && !(component instanceof Button) && (fColumn == tColumn)) {
            component.setWidth("String_Node_Str");
          }
        }
        gridLayout.addComponent(component,fColumn,fRow,tColumn,tRow);
      }
 else       if (wg instanceof WidgetGroup) {
      }
    }
    pages.add(gridLayout);
  }
  taskPanel.setContent(pages.get(currentPage));
  taskPanel.setCaption(pageFlow.getPages().getPages().get(currentPage).getPageLabel());
}

Fixed version (ground truth):
protected void generateWindow() throws Exception {
  prepareAttachments();
  prepareGroovyScripts();
  if (pageFlow == null) {
    showMessage("String_Node_Str",Notification.TYPE_WARNING_MESSAGE);
    return;
  }
  for (  Page page : pageFlow.getPages().getPages()) {
    TableStyle ts=barResource.getTableStyle(page);
    GridLayout gridLayout=new GridLayout(ts.getColumns(),ts.getRows());
    gridLayout.setMargin(false,true,true,true);
    gridLayout.setSpacing(true);
    for (    Object wg : page.getWidgets().getWidgetsAndGroups()) {
      Component component=null;
      if (wg instanceof Widget) {
        Widget widget=(Widget)wg;
        component=getComponent(widget);
        components.put(component,widget);
        fields.put("String_Node_Str" + widget.getId(),component);
        ComponentStyle componentStyle=ts.getElements().get(widget.getId());
        int fColumn=componentStyle.getPosition().getFColumn();
        int fRow=componentStyle.getPosition().getFRow();
        int tColumn=componentStyle.getPosition().getTColumn();
        int tRow=componentStyle.getPosition().getTRow();
        CSSProperty cssProperty=componentStyle.getCss();
        if (cssProperty != null) {
        }
 else {
          if (!(component instanceof Table) && !(component instanceof Button) && (fColumn == tColumn)) {
            component.setWidth("String_Node_Str");
          }
        }
        gridLayout.addComponent(component,fColumn,fRow,tColumn,tRow);
      }
 else       if (wg instanceof WidgetGroup) {
      }
    }
    pages.add(verticalLayout);
  }
  taskPanel.setContent(pages.get(currentPage));
  taskPanel.setCaption(pageFlow.getPages().getPages().get(currentPage).getPageLabel());
}