class RoleManagerServiceImpl extends HibernateDaoImpl implements RoleManagerService {

    @Transactional(propagation = Propagation.REQUIRED, readOnly = false)
    public void updateRole(ExecutionContext context, String roleName, Role roleDetails, Set<User> assignedUserSet,
            Set<User> unassignedUserSet) {
        userService.assignUsers(context, roleName, toNameSet(assignedUserSet));
        userService.unassignUsers(context, roleName, toNameSet(unassignedUserSet));

        userService.updateRole(null, roleName, roleDetails);
    }

}