public function loadUserByPublicKey($publicApiKey)
    {
        if (null === $user = $this->findOneBy(array('_api_key_public' => $publicApiKey))) {
            throw new UsernameNotFoundException(sprintf('Unknown public API key `%s`.', $publicApiKey));
        }

        return $this->checkActivatedStatus($user);
    }