Program: 60532
Project: 60532
Buggy source:
public Configuration(){
  super();
  setupSyncopeConf();
  add(new PoliciesPanel("String_Node_Str",getPageReference(),PolicyType.PASSWORD));
  add(new PoliciesPanel("String_Node_Str",getPageReference(),PolicyType.ACCOUNT));
  add(new PoliciesPanel("String_Node_Str",getPageReference(),PolicyType.SYNC));
  add(createNotificationWin=new ModalWindow("String_Node_Str"));
  add(editNotificationWin=new ModalWindow("String_Node_Str"));
  setupNotification();
  add(createSecurityQuestionWin=new ModalWindow("String_Node_Str"));
  add(editSecurityQuestionWin=new ModalWindow("String_Node_Str"));
  setupSecurityQuestion();
  WebMarkupContainer noActivitiEnabledForUsers=new WebMarkupContainer("String_Node_Str");
  noActivitiEnabledForUsers.setOutputMarkupPlaceholderTag(true);
  add(noActivitiEnabledForUsers);
  WebMarkupContainer workflowDefContainer=new WebMarkupContainer("String_Node_Str");
  workflowDefContainer.setOutputMarkupPlaceholderTag(true);
  if (wfRestClient.isActivitiEnabledForUsers()) {
    noActivitiEnabledForUsers.setVisible(false);
  }
 else {
    workflowDefContainer.setVisible(false);
  }
  BookmarkablePageLink<Void> activitiModeler=new BookmarkablePageLink<Void>("String_Node_Str",ActivitiModelerPopupPage.class);
  activitiModeler.setPopupSettings(new VeilPopupSettings().setHeight(600).setWidth(800));
  MetaDataRoleAuthorizationStrategy.authorize(activitiModeler,ENABLE,xmlRolesReader.getAllAllowedRoles("String_Node_Str","String_Node_Str"));
  workflowDefContainer.add(activitiModeler);
  boolean activitiModelerEnabled=false;
  try {
    String activitiModelerDirectory=WebApplicationContextUtils.getWebApplicationContext(WebApplication.get().getServletContext()).getBean("String_Node_Str",String.class);
    File baseDir=new File(activitiModelerDirectory);
    activitiModelerEnabled=baseDir.exists() && baseDir.canRead() && baseDir.isDirectory();
  }
 catch (  Exception e) {
    LOG.error("String_Node_Str",e);
  }
  activitiModeler.setEnabled(activitiModelerEnabled);
  BookmarkablePageLink<Void> xmlEditor=new BookmarkablePageLink<Void>("String_Node_Str",XMLEditorPopupPage.class);
  xmlEditor.setPopupSettings(new VeilPopupSettings().setHeight(480).setWidth(800));
  MetaDataRoleAuthorizationStrategy.authorize(xmlEditor,ENABLE,xmlRolesReader.getAllAllowedRoles("String_Node_Str","String_Node_Str"));
  workflowDefContainer.add(xmlEditor);
  Image workflowDefDiagram=new Image("String_Node_Str",new Model()){
    private static final long serialVersionUID=-8457850449086490660L;
    @Override protected IResource getImageResource(){
      return new DynamicImageResource(){
        private static final long serialVersionUID=923201517955737928L;
        @Override protected byte[] getImageData(        final IResource.Attributes attributes){
          return wfRestClient.isActivitiEnabledForUsers() ? wfRestClient.getDiagram() : new byte[0];
        }
      }
;
    }
  }
;
  workflowDefContainer.add(workflowDefDiagram);
  MetaDataRoleAuthorizationStrategy.authorize(workflowDefContainer,ENABLE,xmlRolesReader.getAllAllowedRoles("String_Node_Str","String_Node_Str"));
  add(workflowDefContainer);
  PropertyListView<LoggerTO> coreLoggerList=new LoggerPropertyList(null,"String_Node_Str",loggerRestClient.listLogs());
  WebMarkupContainer coreLoggerContainer=new WebMarkupContainer("String_Node_Str");
  coreLoggerContainer.add(coreLoggerList);
  coreLoggerContainer.setOutputMarkupId(true);
  MetaDataRoleAuthorizationStrategy.authorize(coreLoggerContainer,ENABLE,xmlRolesReader.getAllAllowedRoles("String_Node_Str","String_Node_Str"));
  add(coreLoggerContainer);
  ConsoleLoggerController consoleLoggerController=new ConsoleLoggerController();
  PropertyListView<LoggerTO> consoleLoggerList=new LoggerPropertyList(consoleLoggerController,"String_Node_Str",consoleLoggerController.getLoggers());
  WebMarkupContainer consoleLoggerContainer=new WebMarkupContainer("String_Node_Str");
  consoleLoggerContainer.add(consoleLoggerList);
  consoleLoggerContainer.setOutputMarkupId(true);
  MetaDataRoleAuthorizationStrategy.authorize(consoleLoggerContainer,ENABLE,xmlRolesReader.getAllAllowedRoles("String_Node_Str","String_Node_Str"));
  add(consoleLoggerContainer);
  add(new LayoutsPanel("String_Node_Str",LayoutType.ADMIN_USER,feedbackPanel));
  add(new LayoutsPanel("String_Node_Str",LayoutType.SELF_USER,feedbackPanel));
  add(new LayoutsPanel("String_Node_Str",LayoutType.ADMIN_ROLE,feedbackPanel));
  add(new LayoutsPanel("String_Node_Str",LayoutType.SELF_ROLE,feedbackPanel));
  add(new LayoutsPanel("String_Node_Str",LayoutType.ADMIN_MEMBERSHIP,feedbackPanel));
  add(new LayoutsPanel("String_Node_Str",LayoutType.SELF_MEMBERSHIP,feedbackPanel));
}

Fixed version (ground truth):
public Configuration(){
  super();
  setupSyncopeConf();
  add(new PoliciesPanel("String_Node_Str",getPageReference(),PolicyType.PASSWORD));
  add(new PoliciesPanel("String_Node_Str",getPageReference(),PolicyType.ACCOUNT));
  add(new PoliciesPanel("String_Node_Str",getPageReference(),PolicyType.SYNC));
  add(createNotificationWin=new ModalWindow("String_Node_Str"));
  add(editNotificationWin=new ModalWindow("String_Node_Str"));
  setupNotification();
  add(createSecurityQuestionWin=new ModalWindow("String_Node_Str"));
  add(editSecurityQuestionWin=new ModalWindow("String_Node_Str"));
  setupSecurityQuestion();
  WebMarkupContainer noActivitiEnabledForUsers=new WebMarkupContainer("String_Node_Str");
  noActivitiEnabledForUsers.setOutputMarkupPlaceholderTag(true);
  add(noActivitiEnabledForUsers);
  WebMarkupContainer workflowDefContainer=new WebMarkupContainer("String_Node_Str");
  workflowDefContainer.setOutputMarkupPlaceholderTag(true);
  if (wfRestClient.isActivitiEnabledForUsers()) {
    noActivitiEnabledForUsers.setVisible(false);
  }
 else {
    workflowDefContainer.setVisible(false);
  }
  BookmarkablePageLink<Void> activitiModeler=new BookmarkablePageLink<Void>("String_Node_Str",ActivitiModelerPopupPage.class);
  activitiModeler.setPopupSettings(new VeilPopupSettings().setHeight(600).setWidth(800));
  MetaDataRoleAuthorizationStrategy.authorize(activitiModeler,ENABLE,xmlRolesReader.getAllAllowedRoles("String_Node_Str","String_Node_Str"));
  workflowDefContainer.add(activitiModeler);
  boolean activitiModelerEnabled=false;
  try {
    String activitiModelerDirectory=WebApplicationContextUtils.getWebApplicationContext(WebApplication.get().getServletContext()).getBean("String_Node_Str",String.class);
    File baseDir=new File(activitiModelerDirectory);
    activitiModelerEnabled=baseDir.exists() && baseDir.canRead() && baseDir.isDirectory();
  }
 catch (  Exception e) {
    LOG.error("String_Node_Str",e);
  }
  activitiModeler.setEnabled(activitiModelerEnabled);
  BookmarkablePageLink<Void> xmlEditor=new BookmarkablePageLink<Void>("String_Node_Str",XMLEditorPopupPage.class);
  xmlEditor.setPopupSettings(new VeilPopupSettings().setHeight(480).setWidth(800));
  MetaDataRoleAuthorizationStrategy.authorize(xmlEditor,ENABLE,xmlRolesReader.getAllAllowedRoles("String_Node_Str","String_Node_Str"));
  workflowDefContainer.add(xmlEditor);
  Image workflowDefDiagram=new Image("String_Node_Str",new Model()){
    private static final long serialVersionUID=-8457850449086490660L;
    @Override protected IResource getImageResource(){
      return new DynamicImageResource(){
        private static final long serialVersionUID=923201517955737928L;
        @Override protected byte[] getImageData(        final IResource.Attributes attributes){
          return wfRestClient.isActivitiEnabledForUsers() ? wfRestClient.getDiagram() : new byte[0];
        }
      }
;
    }
  }
;
  workflowDefContainer.add(workflowDefDiagram);
  MetaDataRoleAuthorizationStrategy.authorize(workflowDefContainer,ENABLE,xmlRolesReader.getAllAllowedRoles("String_Node_Str","String_Node_Str"));
  add(workflowDefContainer);
  PropertyListView<LoggerTO> coreLoggerList=new LoggerPropertyList(null,"String_Node_Str",loggerRestClient.listLogs());
  WebMarkupContainer coreLoggerContainer=new WebMarkupContainer("String_Node_Str");
  coreLoggerContainer.add(coreLoggerList);
  coreLoggerContainer.setOutputMarkupId(true);
  MetaDataRoleAuthorizationStrategy.authorize(coreLoggerContainer,ENABLE,xmlRolesReader.getAllAllowedRoles("String_Node_Str","String_Node_Str"));
  add(coreLoggerContainer);
  ConsoleLoggerController consoleLoggerController=new ConsoleLoggerController();
  PropertyListView<LoggerTO> consoleLoggerList=new LoggerPropertyList(consoleLoggerController,"String_Node_Str",consoleLoggerController.getLoggers());
  WebMarkupContainer consoleLoggerContainer=new WebMarkupContainer("String_Node_Str");
  consoleLoggerContainer.add(consoleLoggerList);
  consoleLoggerContainer.setOutputMarkupId(true);
  MetaDataRoleAuthorizationStrategy.authorize(consoleLoggerContainer,ENABLE,xmlRolesReader.getAllAllowedRoles("String_Node_Str","String_Node_Str"));
  add(consoleLoggerContainer);
  add(new LayoutsPanel("String_Node_Str",AttrLayoutType.ADMIN_USER,feedbackPanel));
  add(new LayoutsPanel("String_Node_Str",AttrLayoutType.SELF_USER,feedbackPanel));
  add(new LayoutsPanel("String_Node_Str",AttrLayoutType.ADMIN_ROLE,feedbackPanel));
  add(new LayoutsPanel("String_Node_Str",AttrLayoutType.SELF_ROLE,feedbackPanel));
  add(new LayoutsPanel("String_Node_Str",AttrLayoutType.ADMIN_MEMBERSHIP,feedbackPanel));
  add(new LayoutsPanel("String_Node_Str",AttrLayoutType.SELF_MEMBERSHIP,feedbackPanel));
}