public void removeGroupManager(final String groupName, final String manager) throws XMLDBException {
try {
executeWithBroker(new BrokerOperation<Void>(){
@Override
public Void withBroker(final DBBroker broker) throws XMLDBException, LockException, PermissionDeniedException, IOException, EXistException, TriggerException, SyntaxException {
final SecurityManager sm = broker.getBrokerPool().getSecurityManager();
final Group group = sm.getGroup(groupName);
final Account account = sm.getAccount(manager);
group.removeManager(account);
sm.updateGroup(group);
return null;
}
});
} catch(final Exception e) {