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