code: protected void saveGroup() {
  
          if (m_group == null) {
              m_group = new CmsGroup();
              String ou = m_ou.getValue();
              if (!ou.endsWith("/")) {
                  ou += "/";
              }
              m_group.setName(m_name.getValue());
              try {
                  m_cms.createGroup(ou + m_name.getValue(), m_description.getValue(), 0, null);
              } catch (CmsException e) {
                  //
              }
          }
  
          m_group.setDescription(m_description.getValue());
          m_group.setEnabled(m_enabled.getValue().booleanValue());
  
          try {
              m_cms.writeGroup(m_group);
          } catch (CmsException e) {
              //
          }
      }
docs: Save group.<p>