docs: private static void collectChoiceEntries(
          CmsType startType,
          boolean startingAtChoiceAttribute,
          CmsChoiceMenuEntryBean currentEntry) {
  
          if (startingAtChoiceAttribute || startType.isChoice()) {
              CmsType choiceType = startingAtChoiceAttribute
              ? startType
              : startType.getAttributeType(CmsType.CHOICE_ATTRIBUTE_NAME);
              for (String choiceName : choiceType.getAttributeNames()) {
                  CmsChoiceMenuEntryBean subEntry = currentEntry.addChild(choiceName);
                  CmsType includedType = choiceType.getAttributeType(choiceName);
                  collectChoiceEntries(includedType, false, subEntry);
              }
          }
      }