final SecurityManager manager = factory.getBrokerPool().getSecurityManager();
try {
return executeWithBroker(new BrokerOperation<Boolean>() {
@Override
public Boolean withBroker(final DBBroker broker) throws EXistException, URISyntaxException, PermissionDeniedException {
return manager.updateAccount(account);
}
});
} catch (final URISyntaxException use) {
throw new EXistException(use.getMessage(), use);
}