public function format($useHTML = false) {
        $msgs = array();

        foreach ($this->messages as $msg) {
            $msgs[] = $msg->format($useHTML);
        }

        return implode(PHP_EOL . PHP_EOL, $msgs);
    }