code: protected CmsPrincipalSelect getGroupSelect(String ou, boolean enabled, CmsUUID groupID) {
  
          CmsPrincipalSelect select = new CmsPrincipalSelect();
          select.setOU(ou);
          select.setEnabled(enabled);
          select.setRealPrincipalsOnly(true);
          select.setPrincipalType(I_CmsPrincipal.PRINCIPAL_GROUP);
          select.setWidgetType(WidgetType.groupwidget);
  
          if (groupID != null) {
              try {
                  select.setValue(m_cms.readGroup(groupID).getName());
              } catch (CmsException e) {
                  LOG.error("Unable to read group", e);
              }
          }
  
          //OU Change enabled because ou-user can be part of other ou-groups
          return select;
      }
docs: Get a principle select for choosing groups.<p>
  
  @param ou name
  @param enabled enabled?
  @param groupID default value
  @return CmsPrinicpalSelect