Program: 60478
Project: 60478
Buggy source:
public BasePage(final PageParameters parameters){
  super(parameters);
  add(new Label("String_Node_Str",SyncopeConsoleApplication.get().getVersion()));
  add(new Label("String_Node_Str",SyncopeConsoleSession.get().getSelfTO().getUsername()));
  final WebMarkupContainer todosContainer=new WebMarkupContainer("String_Node_Str");
  add(todosContainer);
  Label todos=new Label("String_Node_Str","String_Node_Str");
  todosContainer.add(todos);
  if (SyncopeConsoleSession.get().owns(StandardEntitlement.WORKFLOW_FORM_LIST)) {
    todos.setDefaultModelObject(userWorkflowRestClient.getForms().size());
  }
  MetaDataRoleAuthorizationStrategy.authorize(todosContainer,WebPage.RENDER,StandardEntitlement.WORKFLOW_FORM_LIST);
  WebMarkupContainer liContainer=new WebMarkupContainer(getLIContainerId("String_Node_Str"));
  add(liContainer);
  liContainer.add(new BookmarkablePageLink<>("String_Node_Str",Dashboard.class));
  liContainer=new WebMarkupContainer(getLIContainerId("String_Node_Str"));
  add(liContainer);
  liContainer.add(new BookmarkablePageLink<>("String_Node_Str",Realms.class));
  liContainer=new WebMarkupContainer(getLIContainerId("String_Node_Str"));
  add(liContainer);
  liContainer.add(new BookmarkablePageLink<>("String_Node_Str",Topology.class));
  liContainer=new WebMarkupContainer(getLIContainerId("String_Node_Str"));
  add(liContainer);
  liContainer.add(new BookmarkablePageLink<>("String_Node_Str",Reports.class));
  WebMarkupContainer confLIContainer=new WebMarkupContainer(getLIContainerId("String_Node_Str"));
  add(confLIContainer);
  WebMarkupContainer confULContainer=new WebMarkupContainer(getULContainerId("String_Node_Str"));
  confLIContainer.add(confULContainer);
  liContainer=new WebMarkupContainer(getLIContainerId("String_Node_Str"));
  confULContainer.add(liContainer);
  final BookmarkablePageLink<Page> securityQuestionLink=new BookmarkablePageLink<>("String_Node_Str",SecurityQuestions.class);
  MetaDataRoleAuthorizationStrategy.authorize(securityQuestionLink,WebPage.ENABLE,StandardEntitlement.SECURITY_QUESTION_CREATE);
  liContainer.add(securityQuestionLink);
  liContainer=new WebMarkupContainer(getLIContainerId("String_Node_Str"));
  confULContainer.add(liContainer);
  final BookmarkablePageLink<Page> workflowLink=new BookmarkablePageLink<>("String_Node_Str",Workflow.class);
  MetaDataRoleAuthorizationStrategy.authorize(workflowLink,WebPage.ENABLE,StandardEntitlement.WORKFLOW_DEF_READ);
  liContainer.add(workflowLink);
  liContainer=new WebMarkupContainer(getLIContainerId("String_Node_Str"));
  confULContainer.add(liContainer);
  final BookmarkablePageLink<Page> logsLink=new BookmarkablePageLink<>("String_Node_Str",Logs.class);
  MetaDataRoleAuthorizationStrategy.authorize(logsLink,WebPage.ENABLE,StandardEntitlement.LOG_LIST);
  liContainer.add(logsLink);
  liContainer=new WebMarkupContainer(getLIContainerId("String_Node_Str"));
  confULContainer.add(liContainer);
  BookmarkablePageLink<Page> typesLink=new BookmarkablePageLink<>("String_Node_Str",Types.class);
  MetaDataRoleAuthorizationStrategy.authorize(typesLink,WebPage.ENABLE,StandardEntitlement.SCHEMA_LIST);
  liContainer.add(typesLink);
  liContainer=new WebMarkupContainer(getLIContainerId("String_Node_Str"));
  confULContainer.add(liContainer);
  liContainer.add(new BookmarkablePageLink<>("String_Node_Str",Policies.class));
  liContainer=new WebMarkupContainer(getLIContainerId("String_Node_Str"));
  confULContainer.add(liContainer);
  liContainer.add(new BookmarkablePageLink<>("String_Node_Str",Layouts.class));
  liContainer=new WebMarkupContainer(getLIContainerId("String_Node_Str"));
  confULContainer.add(liContainer);
  liContainer.add(new BookmarkablePageLink<>("String_Node_Str",Notifications.class));
  liContainer=new WebMarkupContainer(getLIContainerId("String_Node_Str"));
  add(liContainer);
  liContainer.add(new BookmarkablePageLink<>("String_Node_Str",CamelRoutes.class));
  add(new Label("String_Node_Str",SyncopeConsoleSession.get().getDomain()));
  add(new BookmarkablePageLink<Page>("String_Node_Str",Logout.class));
  Component containingLI=get(getLIContainerId(getClass().getSimpleName().toLowerCase()));
  if (containingLI == null) {
    containingLI=confULContainer.get(getLIContainerId(getClass().getSimpleName().toLowerCase()));
  }
  if (containingLI != null) {
    containingLI.add(new Behavior(){
      private static final long serialVersionUID=1469628524240283489L;
      @Override public void onComponentTag(      final Component component,      final ComponentTag tag){
        tag.put("String_Node_Str","String_Node_Str");
      }
    }
);
    if (confULContainer.getId().equals(containingLI.getParent().getId())) {
      confULContainer.add(new Behavior(){
        private static final long serialVersionUID=3109256773218160485L;
        @Override public void onComponentTag(        final Component component,        final ComponentTag tag){
          tag.put("String_Node_Str","String_Node_Str");
          tag.put("String_Node_Str","String_Node_Str");
        }
      }
);
      confLIContainer.add(new Behavior(){
        private static final long serialVersionUID=3109256773218160485L;
        @Override public void onComponentTag(        final Component component,        final ComponentTag tag){
          tag.put("String_Node_Str","String_Node_Str");
        }
      }
);
    }
  }
}

Fixed version (ground truth):
public BasePage(final PageParameters parameters){
  super(parameters);
  add(new Label("String_Node_Str",SyncopeConsoleApplication.get().getVersion()));
  add(new Label("String_Node_Str",SyncopeConsoleSession.get().getSelfTO().getUsername()));
  final WebMarkupContainer todosContainer=new WebMarkupContainer("String_Node_Str");
  add(todosContainer);
  Label todos=new Label("String_Node_Str","String_Node_Str");
  todosContainer.add(todos);
  if (SyncopeConsoleSession.get().owns(StandardEntitlement.WORKFLOW_FORM_LIST)) {
    todos.setDefaultModelObject(userWorkflowRestClient.getForms().size());
  }
  MetaDataRoleAuthorizationStrategy.authorize(todosContainer,WebPage.RENDER,StandardEntitlement.WORKFLOW_FORM_LIST);
  WebMarkupContainer liContainer=new WebMarkupContainer(getLIContainerId("String_Node_Str"));
  add(liContainer);
  liContainer.add(new BookmarkablePageLink<>("String_Node_Str",Dashboard.class));
  liContainer=new WebMarkupContainer(getLIContainerId("String_Node_Str"));
  add(liContainer);
  liContainer.add(new BookmarkablePageLink<>("String_Node_Str",Realms.class));
  liContainer=new WebMarkupContainer(getLIContainerId("String_Node_Str"));
  add(liContainer);
  liContainer.add(new BookmarkablePageLink<>("String_Node_Str",Topology.class));
  liContainer=new WebMarkupContainer(getLIContainerId("String_Node_Str"));
  add(liContainer);
  liContainer.add(new BookmarkablePageLink<>("String_Node_Str",Reports.class));
  WebMarkupContainer confLIContainer=new WebMarkupContainer(getLIContainerId("String_Node_Str"));
  add(confLIContainer);
  WebMarkupContainer confULContainer=new WebMarkupContainer(getULContainerId("String_Node_Str"));
  confLIContainer.add(confULContainer);
  liContainer=new WebMarkupContainer(getLIContainerId("String_Node_Str"));
  confULContainer.add(liContainer);
  final BookmarkablePageLink<Page> securityQuestionLink=new BookmarkablePageLink<>("String_Node_Str",SecurityQuestions.class);
  liContainer.add(securityQuestionLink);
  liContainer=new WebMarkupContainer(getLIContainerId("String_Node_Str"));
  confULContainer.add(liContainer);
  final BookmarkablePageLink<Page> workflowLink=new BookmarkablePageLink<>("String_Node_Str",Workflow.class);
  MetaDataRoleAuthorizationStrategy.authorize(workflowLink,WebPage.ENABLE,StandardEntitlement.WORKFLOW_DEF_READ);
  liContainer.add(workflowLink);
  liContainer=new WebMarkupContainer(getLIContainerId("String_Node_Str"));
  confULContainer.add(liContainer);
  final BookmarkablePageLink<Page> logsLink=new BookmarkablePageLink<>("String_Node_Str",Logs.class);
  MetaDataRoleAuthorizationStrategy.authorize(logsLink,WebPage.ENABLE,StandardEntitlement.LOG_LIST);
  liContainer.add(logsLink);
  liContainer=new WebMarkupContainer(getLIContainerId("String_Node_Str"));
  confULContainer.add(liContainer);
  BookmarkablePageLink<Page> typesLink=new BookmarkablePageLink<>("String_Node_Str",Types.class);
  MetaDataRoleAuthorizationStrategy.authorize(typesLink,WebPage.ENABLE,StandardEntitlement.SCHEMA_LIST);
  liContainer.add(typesLink);
  liContainer=new WebMarkupContainer(getLIContainerId("String_Node_Str"));
  confULContainer.add(liContainer);
  liContainer.add(new BookmarkablePageLink<>("String_Node_Str",Policies.class));
  liContainer=new WebMarkupContainer(getLIContainerId("String_Node_Str"));
  confULContainer.add(liContainer);
  liContainer.add(new BookmarkablePageLink<>("String_Node_Str",Layouts.class));
  liContainer=new WebMarkupContainer(getLIContainerId("String_Node_Str"));
  confULContainer.add(liContainer);
  liContainer.add(new BookmarkablePageLink<>("String_Node_Str",Notifications.class));
  liContainer=new WebMarkupContainer(getLIContainerId("String_Node_Str"));
  add(liContainer);
  liContainer.add(new BookmarkablePageLink<>("String_Node_Str",CamelRoutes.class));
  add(new Label("String_Node_Str",SyncopeConsoleSession.get().getDomain()));
  add(new BookmarkablePageLink<Page>("String_Node_Str",Logout.class));
  Component containingLI=get(getLIContainerId(getClass().getSimpleName().toLowerCase()));
  if (containingLI == null) {
    containingLI=confULContainer.get(getLIContainerId(getClass().getSimpleName().toLowerCase()));
  }
  if (containingLI != null) {
    containingLI.add(new Behavior(){
      private static final long serialVersionUID=1469628524240283489L;
      @Override public void onComponentTag(      final Component component,      final ComponentTag tag){
        tag.put("String_Node_Str","String_Node_Str");
      }
    }
);
    if (confULContainer.getId().equals(containingLI.getParent().getId())) {
      confULContainer.add(new Behavior(){
        private static final long serialVersionUID=3109256773218160485L;
        @Override public void onComponentTag(        final Component component,        final ComponentTag tag){
          tag.put("String_Node_Str","String_Node_Str");
          tag.put("String_Node_Str","String_Node_Str");
        }
      }
);
      confLIContainer.add(new Behavior(){
        private static final long serialVersionUID=3109256773218160485L;
        @Override public void onComponentTag(        final Component component,        final ComponentTag tag){
          tag.put("String_Node_Str","String_Node_Str");
        }
      }
);
    }
  }
}