protected function loadEzUser($login)
    {
        if (empty($login)) {
            return null;
        }

        /** @var \eZ\Publish\API\Repository\UserService $userService */
        $userService = $this->getContainer()->get('ezpublish.api.service.user');

        try {
            return $userService->loadUserByLogin($login);
        } catch (NotFoundException $e) {
            return null;
        }
    }