private static function checkFormat(&$format)
    {
        $format = strtolower($format);

        if ( ! in_array($format, static::$supportedFormat)) {
            throw InvalidProfileFormatException::make($format, static::$supportedFormat);
        }
    }