protected static function loadCache(\SwaggerValidator\Common\Context $context)
    {
        self::cleanInstances();

        $swagger = include self::$cachePath;

        if (!is_array($swagger)) {
            $context->throwException('Cannot Load Cache file : ' . self::$cachePath, __METHOD__, __LINE__);
        }

        $swagger = $swagger['swg'];

        if (!is_object($swagger) && ($swagger instanceof \SwaggerValidator\Object\Swagger)) {
            $context->throwException('Cannot Load Cache file : ' . self::$cachePath, __METHOD__, __LINE__);
        }

        return $swagger;
    }