Connector/IdentityService/IdentityService.php
public function insert($objectIdentifier, $objectType, $adapterIdentifier, $adapterName)
    {
        /**
         * @var Identity $identity
         */
        $identity = Identity::fromArray([
            'objectIdentifier' => $objectIdentifier,
            'objectType' => $objectType,
            'adapterIdentifier' => $adapterIdentifier,
            'adapterName' => $adapterName,
        ]);

        $this->validator->validate($identity);

        $storage = reset($this->storages);
        $storage->insert($identity);

        return $identity;
    }
public function insert($objectIdentifier, $objectType, $adapterIdentifier, $adapterName)
    {
        /**
         * @var Identity $identity
         */
        $identity = Identity::fromArray([
            'objectIdentifier' => $objectIdentifier,
            'objectType' => $objectType,
            'adapterIdentifier' => $adapterIdentifier,
            'adapterName' => $adapterName,
        ]);

        $this->validator->validate($identity);

        $storage = reset($this->storages);
        $storage->insert($identity);

        return $identity;
    }
{@inheritdoc}