code: protected void exportGroup(Element parent, CmsGroup group) throws CmsImportExportException, SAXException {
  
          try {
              String parentgroup;
              if ((group.getParentId() == null) || group.getParentId().isNullUUID()) {
                  parentgroup = "";
              } else {
                  parentgroup = getCms().getParent(group.getName()).getName();
              }
  
              Element e = parent.addElement(CmsImportVersion10.N_GROUP);
              e.addElement(CmsImportVersion10.N_NAME).addText(group.getSimpleName());
              e.addElement(CmsImportVersion10.N_DESCRIPTION).addCDATA(group.getDescription());
              e.addElement(CmsImportVersion10.N_FLAGS).addText(Integer.toString(group.getFlags()));
              e.addElement(CmsImportVersion10.N_PARENTGROUP).addText(parentgroup);
  
              // write the XML
              digestElement(parent, e);
          } catch (CmsException e) {
              CmsMessageContainer message = org.opencms.db.Messages.get().container(
                  org.opencms.db.Messages.ERR_GET_PARENT_GROUP_1,
                  group.getName());
              if (LOG.isDebugEnabled()) {
                  LOG.debug(message.key(), e);
              }
  
              throw new CmsImportExportException(message, e);
          }
      }
docs: Exports one single group with all it's data.<p>
  
  @param parent the parent node to add the groups to
  @param group the group to be exported
  
  @throws CmsImportExportException if something goes wrong
  @throws SAXException if something goes wrong processing the manifest.xml