private function registerData($domain, $dataset, $action = 'create')
    {
        foreach ($dataset as $reference => $data) {
            $this->addReference(
                $reference,
                $domain->getAction($action)
                    ->denormalize($data)
                    ->resolve()
            );
        }
    }