public function getBestTarget()
    {
        if ($this->hasParent() && ($this->target == '' || $this->target == '#')) {
            return $this->parent->getBestTarget();
        }
        
        return $this->target;
    }