public function paintSignal($type, $payload)
    {
        parent::paintSignal($type, $payload);
        print $this->getIndent(1);
        print '<' . $this->namespace . "signal type=\"$type\">";
        print '<![CDATA[' . serialize($payload) . ']]>';
        print '</' . $this->namespace . "signal>\n";
    }