code: protected void exportOrgUnit(Element parent, CmsOrganizationalUnit orgunit) throws SAXException, CmsException {
  
          Element orgunitElement = parent.addElement(CmsImportVersion10.N_ORGUNIT);
          getSaxWriter().writeOpen(orgunitElement);
  
          Element name = orgunitElement.addElement(CmsImportVersion10.N_NAME).addText(orgunit.getName());
          digestElement(orgunitElement, name);
  
          Element description = orgunitElement.addElement(CmsImportVersion10.N_DESCRIPTION).addCDATA(
              orgunit.getDescription());
          digestElement(orgunitElement, description);
  
          Element flags = orgunitElement.addElement(CmsImportVersion10.N_FLAGS).addText(
              Integer.toString(orgunit.getFlags()));
          digestElement(orgunitElement, flags);
  
          Element resources = orgunitElement.addElement(CmsImportVersion10.N_RESOURCES);
          Iterator<CmsResource> it = OpenCms.getOrgUnitManager().getResourcesForOrganizationalUnit(
              getCms(),
              orgunit.getName()).iterator();
          while (it.hasNext()) {
              CmsResource resource = it.next();
              resources.addElement(CmsImportVersion10.N_RESOURCE).addText(resource.getRootPath());
          }
          digestElement(orgunitElement, resources);
          getReport().println(
              org.opencms.report.Messages.get().container(org.opencms.report.Messages.RPT_OK_0),
              I_CmsReport.FORMAT_OK);
  
          Element groupsElement = parent.addElement(CmsImportVersion10.N_GROUPS);
          getSaxWriter().writeOpen(groupsElement);
          exportGroups(groupsElement, orgunit);
          getSaxWriter().writeClose(groupsElement);
  
          Element usersElement = parent.addElement(CmsImportVersion10.N_USERS);
          getSaxWriter().writeOpen(usersElement);
          exportUsers(usersElement, orgunit);
          getSaxWriter().writeClose(usersElement);
  
          getSaxWriter().writeClose(orgunitElement);
      }
docs: Exports one single organizational unit with all it's data.<p>
  
  @param parent the parent node to add the groups to
  @param orgunit the group to be exported
  
  @throws SAXException if something goes wrong processing the manifest.xml
  @throws CmsException if something goes wrong reading the data to export