public function getStatusId()
    {
        if (!$this->owner->hasAttribute($this->statusAttribute)) {
            throw new CException('Failed to get status id. Status attribute does not exist.');
        }
        return $this->owner->{$this->statusAttribute};
    }