// status = DatabaseConnection.startTransaction();
GroupAuthorityService.deleteByGroupId(groupId);
for (String authority : roles) {
this.validateAuthority(authority);
// this.queryHandler().insertUserAuthority(username, authority, conn);
GroupAuthorityService.save(new GroupAuthorityEntity(groupId, groupName, authority));
}
// refresh the current role requirements
JAMWikiAuthenticationConfiguration.resetJamwikiAnonymousAuthorities();
JAMWikiAuthenticationConfiguration.resetDefaultGroupRoles();
} catch (WikiException e) {