try { this._processProperties(doc);  Element root = doc.getDocumentElement();  _processMetaData(_getImmediateElement(root, "metadata")); Element     dataE         = _getImmediateElement(root, "dataList"); Collection  groupElements = _getImmediateElements(dataE, "group"); if (groupElements != null) { Iterator groupsIterator = groupElements.iterator(); Element groupElement; while (groupsIterator.hasNext()) { _processGroup( (Element) groupsIterator.next() ); } }  Collection stemElements = _getImmediateElements(root, "stem"); if (stemElements != null) { Iterator  stemsIterator = stemElements.iterator(); Element   stemElement; while (stemsIterator.hasNext()) { _processStem( (Element) stemsIterator.next() ); } }  _processMembershipLists(); _processNamingPrivLists(); _processAccessPrivLists(); } catch (AttributeNotFoundException eANF)     { throw new GrouperException(eANF.getMessage(), eANF); } catch (GrantPrivilegeException eGP)         { throw new GrouperException(eGP.getMessage(), eGP); } catch (GroupModifyException eGM)            { throw new GrouperException(eGM.getMessage(), eGM); } catch (GroupNotFoundException eGNF)         { throw new GrouperException(eGNF.getMessage(), eGNF); } catch (InsufficientPrivilegeException eIP)  { throw new GrouperException(eIP.getMessage(), eIP); } catch (MemberAddException eMA)              { throw new GrouperException(eMA.getMessage(), eMA); } catch (MemberDeleteException eMD)           { throw new GrouperException(eMD.getMessage(), eMD); } catch (RevokePrivilegeException eRP)        { throw new GrouperException(eRP.getMessage(), eRP); } catch (SchemaException eS)                  { throw new GrouperException(eS.getMessage(), eS); } catch (StemModifyException eNSM)            { throw new GrouperException(eNSM.getMessage(), eNSM); } catch (StemNotFoundException eNSNF)         { throw new GrouperException(eNSNF.getMessage(), eNSNF); } catch (SubjectNotFoundException eSNF)       { throw new GrouperException(eSNF.getMessage(), eSNF); } LOG.info("update complete");
this.updateOnly = true; this._load( StemFinder.findRootStem(this.s), doc ); LOG.info("finished update");
  public void update(Document doc)    throws  GrouperException  {    // TODO 20060921 integrate with `load(ns, doc)`    LOG.info("starting update");    try {      this._processProperties(doc);      Element root = doc.getDocumentElement();      _processMetaData(_getImmediateElement(root, "metadata"));      Element     dataE         = _getImmediateElement(root, "dataList");      Collection  groupElements = _getImmediateElements(dataE, "group");      if (groupElements != null) {        Iterator groupsIterator = groupElements.iterator();        Element groupElement;        while (groupsIterator.hasNext()) {          _processGroup( (Element) groupsIterator.next() );        }      }      Collection stemElements = _getImmediateElements(root, "stem");      if (stemElements != null) {        Iterator  stemsIterator = stemElements.iterator();        Element   stemElement;        while (stemsIterator.hasNext()) {          _processStem( (Element) stemsIterator.next() );        }      }      _processMembershipLists();      _processNamingPrivLists();      _processAccessPrivLists();    }    catch (AttributeNotFoundException eANF)     {      throw new GrouperException(eANF.getMessage(), eANF);    }    catch (GrantPrivilegeException eGP)         {      throw new GrouperException(eGP.getMessage(), eGP);    }    catch (GroupModifyException eGM)            {      throw new GrouperException(eGM.getMessage(), eGM);    }    catch (GroupNotFoundException eGNF)         {      throw new GrouperException(eGNF.getMessage(), eGNF);    }    catch (InsufficientPrivilegeException eIP)  {      throw new GrouperException(eIP.getMessage(), eIP);    }    catch (MemberAddException eMA)              {      throw new GrouperException(eMA.getMessage(), eMA);    }    catch (MemberDeleteException eMD)           {      throw new GrouperException(eMD.getMessage(), eMD);    }    catch (RevokePrivilegeException eRP)        {      throw new GrouperException(eRP.getMessage(), eRP);    }    catch (SchemaException eS)                  {      throw new GrouperException(eS.getMessage(), eS);    }    catch (StemModifyException eNSM)            {      throw new GrouperException(eNSM.getMessage(), eNSM);    }    catch (StemNotFoundException eNSNF)         {      throw new GrouperException(eNSNF.getMessage(), eNSNF);    }    catch (SubjectNotFoundException eSNF)       {      throw new GrouperException(eSNF.getMessage(), eSNF);    }    LOG.info("update complete");  } // public void update(doc)