code: private String getChoiceName(int valueIndex) {
  
          if (isChoiceHandler()) {
              CmsEntity choice = m_entity.getAttribute(CmsType.CHOICE_ATTRIBUTE_NAME).getComplexValues().get(valueIndex);
              if (choice != null) {
                  for (String option : getAttributeType().getAttributeNames()) {
                      if (choice.hasAttribute(option)) {
                          return option;
  
                      }
                  }
              }
          }
          return null;
      }
docs: Returns the attribute choice name for the given index.<p>
  
  @param valueIndex the value index
  
  @return the attribute choice name