class DLFileEntryTypeResolversImpl implements DLFileEntryTypeResolvers {

    @Override
    public DataFetcher<DLFileEntryType> updateDLFileEntryTypeDataFetcher() {
        return environment -> {
            long userId = util.getLongArg(environment, "userId", util.getDefaultUserId());
            long fileEntryTypeId = util.getLongArg(environment, "fileEntryTypeId");
            Map<Locale, String> nameMap = util.getTranslatedArg(environment, "nameMap");
            Map<Locale, String> descriptionMap = util.getTranslatedArg(environment, "descriptionMap");
            long[] ddmStructureIds = util.getLongArrayArg(environment, "ddmStructureIds");
            ServiceContext serviceContext = new ServiceContext();

            // REMARK: Thank you for inconsistent API: update does not return the updated entity...
            dlFileEntryTypeLocalService.updateFileEntryType(
                    userId,
                    fileEntryTypeId,
                    nameMap,
                    descriptionMap,
                    ddmStructureIds,
                    serviceContext);
            return dlFileEntryTypeLocalService.getDLFileEntryType(fileEntryTypeId);
        };
    }

}