class AssetVocabularyResolversImpl implements AssetVocabularyResolvers {

    @Override
    public DataFetcher<AssetVocabulary> updateAssetVocabularyDataFetcher() {
        return environment -> {
            long vocabularyId = util.getLongArg(environment, "vocabularyId");
            String title = util.getStringArg(environment, "title");
            Map<Locale, String> titleMap = util.getTranslatedArg(environment, "nameMap");
            Map<Locale, String> descriptionMap = util.getTranslatedArg(environment, "descriptionMap");
            String settings = util.getStringArg(environment, "settings");
            ServiceContext serviceContext = new ServiceContext();

            return assetVocabularyLocalService.updateVocabulary(
                    vocabularyId,
                    title,
                    titleMap,
                    descriptionMap,
                    settings,
                    serviceContext);
        };
    }

}