private function mapSeverity($severity)
    {
        if (empty($severity)) {
            throw new \InvalidArgumentException('Invalid severity string');
        }

        if (array_key_exists($severity, $this->severityMap)) {
            return $this->severityMap[$severity];
        }

        return $severity;
    }