// status = DatabaseConnection.startTransaction();
AuthorityService.deleteByName(username);
for (String authority : roles) {
this.validateAuthority(authority);
// this.queryHandler().insertUserAuthority(username, authority, conn);
AuthorityService.save(new AuthorityEntity(username, authority));
}
} catch (WikiException e) {
// DatabaseConnection.rollbackOnException(status, e);
throw e;
}