class RoleResolversImpl implements RoleResolvers {

    @Override
    public DataFetcher<Role> updateRoleDataFetcher() {
        return environment -> {
            long roleId = util.getLongArg(environment, "roleId");
            String name = util.getStringArg(environment, "name");
            Map<Locale, String> titleMap = util.getTranslatedArg(environment, "titleMap");
            Map<Locale, String> descriptionMap = util.getTranslatedArg(environment, "descriptionMap");
            String subtype = util.getStringArg(environment, "subtype");
            ServiceContext serviceContext = new ServiceContext();

            return roleLocalService.updateRole(
                    roleId,
                    name,
                    titleMap,
                    descriptionMap,
                    subtype,
                    serviceContext);
        };
    }

}