protected function getCorpusName()
    {
        if ($this->currObj instanceof Channel && $this->currObj->isSpacer()) {
            if ($this->currObj->spacerGetType() != TeamSpeak3::SPACER_CUSTOM) {
                return "";
            }

            $string = $this->currObj["channel_name"]->section("]", 1, 99);

            if ($this->currObj->spacerGetAlign() == TeamSpeak3::SPACER_ALIGN_REPEAT) {
                $string->resize(30, $string);
            }

            return htmlspecialchars($string);
        }

        if ($this->currObj instanceof Client) {
            $before = array();
            $behind = array();

	        /**
	         * @var Channelgroup|Servergroup $group
	         */
	        foreach ($this->currObj->memberOf() as $group) {
                if ($group->getProperty("namemode") == TeamSpeak3::GROUP_NAMEMODE_BEFORE) {
                    $before[] = "[" . htmlspecialchars($group["name"]) . "]";
                } elseif ($group->getProperty("namemode") == TeamSpeak3::GROUP_NAMEMODE_BEHIND) {
                    $behind[] = "[" . htmlspecialchars($group["name"]) . "]";
                }
            }

            return implode("", $before) . " " . htmlspecialchars($this->currObj) . " " . implode("", $behind);
        }

        return htmlspecialchars($this->currObj);
    }