group, FieldFinder.find((String) listFields .get(i)), padding + "  "
group, FieldFinder.find((String) listFields .get(i))
  private void _writeFullGroup(Group group, String padding)     throws  CompositeNotFoundException,            GroupNotFoundException,            IOException,            MemberNotFoundException,            SchemaException,            SubjectNotFoundException  {    LOG.debug("Writing group " + group.getName() + " to XML");    this.xml.puts();    this.xml.put(padding);    // This was in a try/catch that ignored `Exception`.    this.xml.puts("<!--" + group.getName() + "-->");    this.xml.put(padding);    this.xml.puts(      "<group extension='" + this._fixXmlAttribute(group.getExtension()) + "'"    );    this.xml.put(padding);    this.xml.put("       ");    this.xml.puts(      "displayExtension='" + this._fixXmlAttribute(group.getDisplayExtension()) + "'"    );    this.xml.put(padding);    this.xml.put("      ");    this.xml.puts("name='" + this._fixXmlAttribute(group.getName()) + "'");    this.xml.put(padding);    this.xml.put("      ");    this.xml.puts(      "displayName='" + this._fixXmlAttribute(group.getDisplayName()) + "'"    );    this.xml.put(padding);    this.xml.put("      ");    this.xml.puts("id='" + this._fixXmlAttribute(group.getUuid()) + "'>");    this.xml.put(padding + "  ");    this.xml.puts(      "<description>" + this._fixXmlAttribute(group.getDescription()) + "</description>"    );    if (_optionTrue("export.group.internal-attributes")) {      _writeInternalAttributes(group, padding + "  ");    }    if (_optionTrue("export.group.custom-attributes")) {      Set       types     = group.getTypes();      types.remove(this.baseType);      if (!types.isEmpty()) {        this.xml.puts(padding + "  <groupTypes>");        Iterator  typesIterator = types.iterator();        GroupType groupType;        while (typesIterator.hasNext()) {          groupType = (GroupType) typesIterator.next();          this._writeGroupType(group, groupType, padding + "    ");        }        this.xml.puts(padding + "  </groupTypes>");      }    }    List listFields = new ArrayList();    if (_optionTrue("export.group.lists")) {      listFields.addAll( _getListFieldsForGroup(group) );    }    if (_optionTrue("export.group.members")) {      listFields.add(0, "members");    }    for (int i = 0; i < listFields.size(); i++) {      LOG.debug("Writing list members for " + group.getName() + ": field=" + listFields.get(i));      _writeListField(        group, FieldFinder.find((String) listFields .get(i)), padding + "  "      );    }    if (_optionTrue("export.privs.access")) {      _writePrivileges("admin" , group.getAdmins()   , group, padding);      _writePrivileges("update", group.getUpdaters() , group, padding);      _writePrivileges("read"  , group.getReaders()  , group, padding);      _writePrivileges("view"  , group.getViewers()  , group, padding);      _writePrivileges("optin" , group.getOptins()   , group, padding);      _writePrivileges("optout", group.getOptouts()  , group, padding);    }    this.xml.puts();    this.xml.puts(padding + "</group>");    // This was in a try/catch that ignored `Exception`.    this.xml.puts(padding + "<!--/" + group.getName() + "-->");    this.xml.puts();    LOG.debug("Finished writing group " + group.getName() + " to XML");  } // private void _writeFullGroup(group, padding)