protected static function resolveProxyInstance($name)
    {
        if (is_object($name)) return $name;

        if (isset(static::$instance[$name])) {
            return static::$instance[$name];
        }

        return static::$instance[$name] = static::$container[$name];
    }