public static function getContentTypeToken($contentType)
    {
        $token = null;
        switch ($contentType) {
            case 'text/html':
                $token = 'Html';
                break;
            /*
            case 'application/xhtml+xml':
                $token = 'Xhtml';
                break;
                */
            case 'application/json':
            case 'text/json':
                $token = 'Json';
                break;
            case 'application/xml':
            case 'text/xml':
                $token = 'Xml';
                break;
            case 'image/png':
            case 'image/jpeg':
            case 'image/*':
                $token = 'Image';
                break;
            case '*/*':
                $token = 'All';
                break;
            default:
                throw new \InvalidArgumentException("Content type '{$contentType}' is not supported.");
        }

        return $token;
    }