Program: 60962
Project: 60962
Buggy source:
public Resources(PageParameters parameters){
  super(parameters);
  add(createResourceWin=new ModalWindow("String_Node_Str"));
  add(mwindow=new ModalWindow("String_Node_Str"));
  add(feedbackPanel);
  paginatorRows=prefMan.getPaginatorRows(getRequest(),Constants.PREF_RESOURCES_PAGINATOR_ROWS);
  List<IColumn> columns=new ArrayList<IColumn>();
  columns.add(new PropertyColumn(new ResourceModel("String_Node_Str"),"String_Node_Str","String_Node_Str"));
  columns.add(new AbstractColumn<ResourceTO>(new ResourceModel("String_Node_Str")){
    private static final long serialVersionUID=2054811145491901166L;
    @Override public void populateItem(    final Item<ICellPopulator<ResourceTO>> cellItem,    final String componentId,    final IModel<ResourceTO> model){
      final ResourceTO resourceTO=model.getObject();
      AjaxLink editLink=new IndicatingAjaxLink("String_Node_Str"){
        private static final long serialVersionUID=-7978723352517770644L;
        @Override public void onClick(        AjaxRequestTarget target){
          mwindow.setPageCreator(new ModalWindow.PageCreator(){
            private static final long serialVersionUID=-7834632442532690940L;
            @Override public Page createPage(){
              ResourceModalPage form=new ResourceModalPage(Resources.this.getPageReference(),mwindow,resourceTO,false);
              return form;
            }
          }
);
          mwindow.show(target);
        }
      }
;
      final EditLinkPanel panel=new EditLinkPanel(componentId,model);
      panel.add(editLink);
      MetaDataRoleAuthorizationStrategy.authorize(panel,ENABLE,xmlRolesReader.getAllAllowedRoles("String_Node_Str","String_Node_Str"));
      cellItem.add(panel);
    }
  }
);
  columns.add(new AbstractColumn<ResourceTO>(new ResourceModel("String_Node_Str")){
    private static final long serialVersionUID=2054811145491901166L;
    @Override public void populateItem(    final Item<ICellPopulator<ResourceTO>> cellItem,    final String componentId,    final IModel<ResourceTO> model){
      final ResourceTO resourceTO=model.getObject();
      AjaxLink deleteLink=new IndicatingDeleteOnConfirmAjaxLink("String_Node_Str"){
        private static final long serialVersionUID=-7978723352517770644L;
        @Override public void onClick(        final AjaxRequestTarget target){
          try {
            restClient.delete(resourceTO.getName());
            info(getString("String_Node_Str"));
          }
 catch (          SyncopeClientCompositeErrorException e) {
            error(getString("String_Node_Str"));
            LOG.error("String_Node_Str" + resourceTO.getName(),e);
          }
          target.add(feedbackPanel);
          target.add(container);
        }
      }
;
      final DeleteLinkPanel panel=new DeleteLinkPanel(componentId,model);
      panel.add(deleteLink);
      MetaDataRoleAuthorizationStrategy.authorize(panel,ENABLE,xmlRolesReader.getAllAllowedRoles("String_Node_Str","String_Node_Str"));
      cellItem.add(panel);
    }
  }
);
  final AjaxFallbackDefaultDataTable table=new AjaxFallbackDefaultDataTable("String_Node_Str",columns,new ResourcesProvider(),paginatorRows);
  container=new WebMarkupContainer("String_Node_Str");
  container.add(table);
  container.setOutputMarkupId(true);
  add(container);
  setWindowClosedCallback(createResourceWin,container);
  setWindowClosedCallback(mwindow,container);
  createResourceWin.setCssClassName(ModalWindow.CSS_CLASS_GRAY);
  createResourceWin.setInitialHeight(WIN_HEIGHT);
  createResourceWin.setInitialWidth(WIN_WIDTH);
  createResourceWin.setCookieName("String_Node_Str");
  mwindow.setCssClassName(ModalWindow.CSS_CLASS_GRAY);
  mwindow.setInitialHeight(WIN_HEIGHT);
  mwindow.setInitialWidth(WIN_WIDTH);
  mwindow.setCookieName("String_Node_Str");
  add(new IndicatingAjaxLink("String_Node_Str"){
    private static final long serialVersionUID=-7978723352517770644L;
    @Override public void onClick(    AjaxRequestTarget target){
      createResourceWin.setPageCreator(new ModalWindow.PageCreator(){
        private static final long serialVersionUID=-7834632442532690940L;
        @Override public Page createPage(){
          final ResourceModalPage windows=new ResourceModalPage(Resources.this.getPageReference(),mwindow,new ResourceTO(),true);
          return windows;
        }
      }
);
      createResourceWin.show(target);
    }
  }
);
  final Form paginatorForm=new Form("String_Node_Str");
  final DropDownChoice rowsChooser=new DropDownChoice("String_Node_Str",new PropertyModel(this,"String_Node_Str"),prefMan.getPaginatorChoices());
  rowsChooser.add(new AjaxFormComponentUpdatingBehavior("String_Node_Str"){
    private static final long serialVersionUID=-1107858522700306810L;
    @Override protected void onUpdate(    final AjaxRequestTarget target){
      prefMan.set(getRequest(),getResponse(),Constants.PREF_RESOURCES_PAGINATOR_ROWS,String.valueOf(paginatorRows));
      table.setItemsPerPage(paginatorRows);
      target.add(container);
    }
  }
);
  paginatorForm.add(rowsChooser);
  add(paginatorForm);
}

Fixed version (ground truth):
public Resources(PageParameters parameters){
  super(parameters);
  add(createResourceWin=new ModalWindow("String_Node_Str"));
  add(mwindow=new ModalWindow("String_Node_Str"));
  add(feedbackPanel);
  paginatorRows=prefMan.getPaginatorRows(getRequest(),Constants.PREF_RESOURCES_PAGINATOR_ROWS);
  List<IColumn> columns=new ArrayList<IColumn>();
  columns.add(new PropertyColumn(new ResourceModel("String_Node_Str"),"String_Node_Str","String_Node_Str"));
  columns.add(new PropertyColumn(new ResourceModel("String_Node_Str"),"String_Node_Str","String_Node_Str"));
  columns.add(new PropertyColumn(new ResourceModel("String_Node_Str"),"String_Node_Str","String_Node_Str"));
  columns.add(new AbstractColumn<ResourceTO>(new ResourceModel("String_Node_Str")){
    private static final long serialVersionUID=2054811145491901166L;
    @Override public void populateItem(    final Item<ICellPopulator<ResourceTO>> cellItem,    final String componentId,    final IModel<ResourceTO> model){
      final ResourceTO resourceTO=model.getObject();
      AjaxLink editLink=new IndicatingAjaxLink("String_Node_Str"){
        private static final long serialVersionUID=-7978723352517770644L;
        @Override public void onClick(        AjaxRequestTarget target){
          mwindow.setPageCreator(new ModalWindow.PageCreator(){
            private static final long serialVersionUID=-7834632442532690940L;
            @Override public Page createPage(){
              ResourceModalPage form=new ResourceModalPage(Resources.this.getPageReference(),mwindow,resourceTO,false);
              return form;
            }
          }
);
          mwindow.show(target);
        }
      }
;
      final EditLinkPanel panel=new EditLinkPanel(componentId,model);
      panel.add(editLink);
      MetaDataRoleAuthorizationStrategy.authorize(panel,ENABLE,xmlRolesReader.getAllAllowedRoles("String_Node_Str","String_Node_Str"));
      cellItem.add(panel);
    }
  }
);
  columns.add(new AbstractColumn<ResourceTO>(new ResourceModel("String_Node_Str")){
    private static final long serialVersionUID=2054811145491901166L;
    @Override public void populateItem(    final Item<ICellPopulator<ResourceTO>> cellItem,    final String componentId,    final IModel<ResourceTO> model){
      final ResourceTO resourceTO=model.getObject();
      AjaxLink deleteLink=new IndicatingDeleteOnConfirmAjaxLink("String_Node_Str"){
        private static final long serialVersionUID=-7978723352517770644L;
        @Override public void onClick(        final AjaxRequestTarget target){
          try {
            restClient.delete(resourceTO.getName());
            info(getString("String_Node_Str"));
          }
 catch (          SyncopeClientCompositeErrorException e) {
            error(getString("String_Node_Str"));
            LOG.error("String_Node_Str" + resourceTO.getName(),e);
          }
          target.add(feedbackPanel);
          target.add(container);
        }
      }
;
      final DeleteLinkPanel panel=new DeleteLinkPanel(componentId,model);
      panel.add(deleteLink);
      MetaDataRoleAuthorizationStrategy.authorize(panel,ENABLE,xmlRolesReader.getAllAllowedRoles("String_Node_Str","String_Node_Str"));
      cellItem.add(panel);
    }
  }
);
  final AjaxFallbackDefaultDataTable table=new AjaxFallbackDefaultDataTable("String_Node_Str",columns,new ResourcesProvider(),paginatorRows);
  container=new WebMarkupContainer("String_Node_Str");
  container.add(table);
  container.setOutputMarkupId(true);
  add(container);
  setWindowClosedCallback(createResourceWin,container);
  setWindowClosedCallback(mwindow,container);
  createResourceWin.setCssClassName(ModalWindow.CSS_CLASS_GRAY);
  createResourceWin.setInitialHeight(WIN_HEIGHT);
  createResourceWin.setInitialWidth(WIN_WIDTH);
  createResourceWin.setCookieName("String_Node_Str");
  mwindow.setCssClassName(ModalWindow.CSS_CLASS_GRAY);
  mwindow.setInitialHeight(WIN_HEIGHT);
  mwindow.setInitialWidth(WIN_WIDTH);
  mwindow.setCookieName("String_Node_Str");
  add(new IndicatingAjaxLink("String_Node_Str"){
    private static final long serialVersionUID=-7978723352517770644L;
    @Override public void onClick(    AjaxRequestTarget target){
      createResourceWin.setPageCreator(new ModalWindow.PageCreator(){
        private static final long serialVersionUID=-7834632442532690940L;
        @Override public Page createPage(){
          final ResourceModalPage windows=new ResourceModalPage(Resources.this.getPageReference(),mwindow,new ResourceTO(),true);
          return windows;
        }
      }
);
      createResourceWin.show(target);
    }
  }
);
  final Form paginatorForm=new Form("String_Node_Str");
  final DropDownChoice rowsChooser=new DropDownChoice("String_Node_Str",new PropertyModel(this,"String_Node_Str"),prefMan.getPaginatorChoices());
  rowsChooser.add(new AjaxFormComponentUpdatingBehavior("String_Node_Str"){
    private static final long serialVersionUID=-1107858522700306810L;
    @Override protected void onUpdate(    final AjaxRequestTarget target){
      prefMan.set(getRequest(),getResponse(),Constants.PREF_RESOURCES_PAGINATOR_ROWS,String.valueOf(paginatorRows));
      table.setItemsPerPage(paginatorRows);
      target.add(container);
    }
  }
);
  paginatorForm.add(rowsChooser);
  add(paginatorForm);
}