protected function onCampaignRecognized(Pap_Common_Campaign $campaign, Pap_Contexts_Tracking $context) {
        if ($context->getAccountId() != null && $context->getAccountId() != '' && $context->getAccountRecognizeMethod() != Pap_Contexts_Tracking::ACCOUNT_RECOGNIZED_DEFAULT) {
            $context->debug('AccountId already recognized before recognizing campaign.');
            return;
        }

        $context->debug('AccountId recognized from Campaign, set: ' . $campaign->getAccountId());
        $context->setAccountId($campaign->getAccountId(), Pap_Contexts_Tracking::ACCOUNT_RECOGNIZED_FROM_CAMPAIGN);
    }
 private function recognizeAccountId(Pap_Contexts_Tracking $context) {
     if (!$this->accountValid($context->getVisit()->getAccountId())) {
         $context->debug('Account from visit with accountId='.$context->getVisit()->getAccountId() .
                         ' is not valid! For now, set default account: '.$context->getAccountId());
         return;
     }
     $context->debug('Set AccountId: '.$context->getVisit()->getAccountId());
     $context->setAccountId($context->getVisit()->getAccountId(),
     Pap_Contexts_Tracking::ACCOUNT_RECOGNIZED_FROM_FORCED_PARAMETER);
 }