docs: protected void setPrincipal(int type, String principalName) {
  
          m_principalName.setValue(principalName);
  
          String typeName = null;
          switch (type) {
              case 0:
                  typeName = I_CmsPrincipal.PRINCIPAL_GROUP;
                  break;
              case 1:
              default:
                  typeName = I_CmsPrincipal.PRINCIPAL_USER;
                  break;
          }
          if (typeName != null) {
              m_principalTypeSelect.setValue(typeName);
          }
      }