Parser parser = new Parser(broker, getUser(DBA_USER), true);
Parser parser = new Parser(broker, getUser(DBA_USER), true, true);
	public synchronized void save(DBBroker broker) throws EXistException {		LOG.debug("storing acl file");		StringBuffer buf = new StringBuffer();		buf.append("<auth>");		// save groups		buf.append("<groups last-id=\"");		buf.append(Integer.toString(nextGroupId));		buf.append("\">");		for (Iterator i = groups.values().iterator(); i.hasNext();)			buf.append(((Group) i.next()).toString());		buf.append("</groups>");		//save users		buf.append("<users last-id=\"");		buf.append(Integer.toString(nextUserId));		buf.append("\">");		for (Iterator i = users.values().iterator(); i.hasNext();)			buf.append(((User) i.next()).toString());		buf.append("</users>");		buf.append("</auth>");		// store users.xml		broker.flush();		broker.sync();		try {			Parser parser = new Parser(broker, getUser(DBA_USER), true);			DocumentImpl doc =				parser.parse(buf.toString(), SYSTEM + '/' + ACL_FILE);			doc.setPermissions(0770);			broker.saveCollection(doc.getCollection());		} catch (IOException e) {			e.printStackTrace();		} catch (SAXException e) {			e.printStackTrace();		} catch (PermissionDeniedException e) {			e.printStackTrace();		}		broker.flush();		broker.sync();	}