class UserGroupServiceImpl implements UserGroupService {

	@Override
	public void createGroup(String group, Set<String> roleIds, Set<String> users) {
		checkAnyRoleFound(roleIds, userRoleDao.addGroupToRole(Collections.singleton(group), roleIds));
		log.debug("Adding users {} to group {}", users, group);
		userGroupDao.addUsers(group, users);
	}

}