@PostConstruct
  private void init() {
    System.out.println("COMpetitinonDetailsBB#init ");

    String encodedCompetitionId = JsfUtils.getCompetitionUrlParameter();

    System.out.println(
        "PARAM " + encodedCompetitionId + " IS NULL " + (encodedCompetitionId == null));

    if (encodedCompetitionId == null) {
      competition = controller.getDisplayedCompetition(DisplayPageEnum.DETAILS);
    } else {
      competition = controller.getCompetitionByEncodedId(encodedCompetitionId);
    }

    if (CheckUtils.isCompetitionNull(competition)) {
      return;
    }

    for (GroupDetails gd : competition.getGroupDetailsList()) {
      for (GroupCompetitor gc : gd.getGroupCompetitorList()) {
        matchCount++;
      }
    }
    bracketCreator.recreateBracketToDisplay(competition);
  }
  //    public List<CompetitorMatchGroup> getCmgList() {
  //        return cmgList;
  //    }
  @PostConstruct
  private void init() {
    logger.log(Level.INFO, "MMMMMMMMMM --, init manageCompetitinoBacking");
    competition = controller.getEditingCompetition();

    if (CheckUtils.isCompetitionNull(competition)) {
      return;
    }

    groupDetailsList = new ArrayList<>(competition.getGroupDetailsList());

    Collections.sort(groupDetailsList);

    bracketCreator.recreateBracketToEdit(competition);
  }