private static void UpdateNamesByGemeentenamen(MunicipalitySyndicationItem syndicationItem, IReadOnlyCollection <GeografischeNaam> gemeentenamen)
        {
            if (gemeentenamen == null || !gemeentenamen.Any())
            {
                return;
            }

            foreach (var naam in gemeentenamen)
            {
                switch (naam.Taal)
                {
                default:
                case Taal.NL:
                    syndicationItem.NameDutch = naam.Spelling;
                    break;

                case Taal.FR:
                    syndicationItem.NameFrench = naam.Spelling;
                    break;

                case Taal.DE:
                    syndicationItem.NameGerman = naam.Spelling;
                    break;

                case Taal.EN:
                    syndicationItem.NameEnglish = naam.Spelling;
                    break;
                }
            }
        }
        private static async Task AddSyndicationItemEntry(AtomEntry <SyndicationItem <Municipality> > entry, SyndicationContext context, CancellationToken ct)
        {
            var municipalitySyndicationItem = new MunicipalitySyndicationItem
            {
                MunicipalityId    = entry.Content.Object.Id,
                NisCode           = entry.Content.Object.Identificator?.ObjectId,
                Version           = entry.Content.Object.Identificator?.Versie,
                Position          = long.Parse(entry.FeedEntry.Id),
                OfficialLanguages = entry.Content.Object.OfficialLanguages,
            };

            UpdateNamesByGemeentenamen(municipalitySyndicationItem, entry.Content.Object.MunicipalityNames);

            await context
            .MunicipalitySyndicationItems
            .AddAsync(municipalitySyndicationItem, ct);
        }