private function getAllResponseFilters($preResponse = false)
    {
        $filters = [];

        foreach ($this->modules as $module) {

            $moduleFilters = $module->getResponseFilters();

            foreach($moduleFilters as $filter){
                if ($preResponse && $filter->isPreResponse()){
                    $filters[] = $filter;
                } elseif (!$preResponse && !$filter->isPreResponse()){
                    $filters[] = $filter;
                }
            }
        }

        return $filters;
    }