class UserGroupResolversImpl implements UserGroupResolvers {

    @Override
    public DataFetcher<UserGroup> updateUserGroupDataFetcher() {
        return environment -> {
            long companyId = util.getLongArg(environment, "companyId");
            long userGroupId = util.getLongArg(environment, "userGroupId");
            String name = util.getStringArg(environment, "name");
            String description = util.getStringArg(environment, "description");
            ServiceContext serviceContext = new ServiceContext();

            return usergroupLocalService.updateUserGroup(
                    companyId,
                    userGroupId,
                    name,
                    description,
                    serviceContext);
        };
    }

}