Group group = new Group(name, ++nextGroupId); groups.put(group.getId(), group); }
newGroup(name); DBBroker broker = null; TransactionManager transact = pool.getTransactionManager(); Txn txn = transact.beginTransaction(); try { broker = pool.get(); save(broker, txn); transact.commit(txn); } catch (EXistException e) { transact.abort(txn); e.printStackTrace(); } finally { pool.release(broker); } }
	public synchronized void addGroup(String name) {		Group group = new Group(name, ++nextGroupId);		groups.put(group.getId(), group);	}