public AccessGroup findUserGroupBy(String name, Role... roles) {
   List<Integer> roleValueList =
       Lists.transform(
           newArrayList(roles),
           new Function<Role, Integer>() {
             @Nullable
             @Override
             public Integer apply(@Nullable Role role) {
               return role.getValue();
             }
           });
   List<Role> roleList = roleRepository.findAll(roleValueList);
   return accessGroupRepository.findByNameAndRoles(name, roleList);
 }
 public AccessGroup save(final AccessGroup accessGroup) {
   return accessGroupRepository.save(accessGroup);
 }