public function handle($request, Closure $next)
    {
        $response = $next($request);

        if ($response instanceof Response) {
            $this->setProfiles($this->getProfileConfig());

            $this->setProfilesWithParameters(func_get_args());

            $psr7Response = $this->createPsr7Response($response);

            $psr7Response = $this->addPolicyHeader($psr7Response);

            $response = $this->createLaravelResponse($psr7Response);
        }

        return $response;
    }