public function setKeepTogether($keepTogether)
    {
        if (is_bool($keepTogether)) {
            $this->keepTogether = $keepTogether;
        } else {
            $msg = "KeepTogether must be a boolean, '" . gettype($keepTogether) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }