protected function parseBot()
{
if ($this->skipBotDetection) {
$this->bot = false;
return false;
}
$botParser = new Bot();
$botParser->setUserAgent($this->getUserAgent());
$botParser->setYamlParser($this->getYamlParser());
$botParser->setCache($this->getCache());
if ($this->discardBotInformation) {
$botParser->discardDetails();
}
$this->bot = $botParser->parse();
}