public function addEmail(EmailActivity $activity)
    {
        @trigger_error(sprintf('The %s() method is deprecated since version 0.8. Use EmailActivityApi::create() instead.', __METHOD__), E_USER_DEPRECATED);

        /** @var EmailActivityApi $apiHandler */
        $apiHandler = $this->closeIoApiWrapper->getEmailActivitiesApi();

        return $apiHandler->create($activity);
    }