protected function getLastBadge()
 {
     wfProfileIn(__METHOD__);
     if (empty($this->userId)) {
         wfProfileOut(__METHOD__);
         return null;
     }
     if (!array_key_exists($this->userId, self::$lastBadge)) {
         $key = $this->getMemcKey();
         $lastBadge = $this->app->wg->memc->get($key);
         if (!empty($lastBadge)) {
             $lastBadge = AchBadge::newFromData($lastBadge);
         } else {
             $lastBadge = null;
         }
         self::$lastBadge[$this->userId] = $lastBadge;
     }
     wfProfileOut(__METHOD__);
     return self::$lastBadge[$this->userId];
 }