class DDMStructureResolversImpl implements DDMStructureResolvers {

    @Override
    public DataFetcher<DDMStructure> updateDDMStructureDataFetcher() {
        return environment -> {
            long userId = util.getLongArg(environment, "userId", util.getDefaultUserId());
            long structureId = util.getLongArg(environment, "structureId");
            long parentStructureId = util.getLongArg(environment, "parentStructureId");
            Map<Locale, String> nameMap = util.getTranslatedArg(environment, "nameMap");
            Map<Locale, String> descriptionMap = util.getTranslatedArg(environment, "descriptionMap");
            DDMForm ddmForm = util.getDDDMFormArg(environment, "ddmForm");
            DDMFormLayout ddmFormLayout = util.getDDDMFormLayoutArg(environment, "ddmFormLayout");
            ServiceContext serviceContext = new ServiceContext();

            return ddmStructureLocalService.updateStructure(
                    userId,
                    structureId,
                    parentStructureId,
                    nameMap,
                    descriptionMap,
                    ddmForm,
                    ddmFormLayout,
                    serviceContext);
        };
    }

}