         no-attributes (select-keys feature pdok-fields)]
     (assoc no-attributes :attributes collected)))
 
-;; TODO parent velden persisten
-;; TODO change flatten moet nested closen bij nested met geometry
-;; TODO alles wijzigen bij change bij nested zonder geometry
 (defn process [processor feature]
   "Processes feature event. Returns nil or error reason"
   (let [flat-feature (flatten (collected-attributes feature))]

          (condp = (:action feature)
            :new (process-new-feature processor flat-feature)
            :change (process-change-feature processor flat-feature)
            (str "Cannot process: " flat-feature))))))

(defn shutdown [{:keys [persistence projectors]}]

                  (assoc! :dataset dataset)
                  (assoc! :parent-collection collection)
                  (assoc! :parent-id id)
                  (assoc! :action :new)
                  (assoc! :id child-id)
                  (assoc! :validity validity)
                  (assoc! :collection (str collection "$" (name child-collection-key))))]
