public function connectUserWithExistingCustomer($user, $customer)
    {
        $result = false;
        if ($user->getEmail() === $customer->getEmail()) {
            \call_user_func(
                [$customer->getAttribute(), 'set' . ucfirst($user->getType()) . 'Identity'],
                $user->getId()
            );
            $result = $this->udapteCustomerAttributes($customer);
        }

        return $result;
    }