code: protected String getElementName(CmsStateBean stateBean) {
  
          if (stateBean.getType().equals(CmsOuTreeType.USER)) {
              try {
                  return OpenCms.getOrgUnitManager().readOrganizationalUnit(m_cms, stateBean.getPath()).getDisplayName(
                      A_CmsUI.get().getLocale());
              } catch (CmsException e) {
                  LOG.error("Unable to read OU", e);
              }
          }
          if (stateBean.getType().equals(CmsOuTreeType.ROLE)) {
              return CmsRole.valueOfId(stateBean.getGroupID()).getName(A_CmsUI.get().getLocale());
          } else {
              try {
                  return m_cms.readGroup(stateBean.getGroupID()).getSimpleName();
              } catch (CmsException e) {
                  LOG.error("Unable to read group", e);
              }
          }
          return "";
      }
docs: Gets the group-, role-, or ou name.<p>
  
  @param stateBean to be read out
  @return Name