protected function initViewResolvers()
    {
        $this->logger->debug('Initializing ViewResolvers.');
        $this->viewResolvers = array();
        if ($this->detectAllViewResolvers) {
            $this->logger->debug('Scanning beans for ViewResolvers.');
            $beans = BeanUtils::beansOfType($this->applicationContext, "Ocelot\\Mvc\\Web\\Servlet\\ViewResolver");
            if (!empty($beans)) {
                $this->viewResolvers = array_values($beans);
            }
        } else {
            $this->logger->debug('Looking up ViewResolver bean by name.');
            $viewResolver = $this->initialContext->lookup(self::VIEW_RESOLVER_BEAN_NAME);
            if ($viewResolver != null && $viewResolver instanceof ViewResolver) {
                $this->viewResolvers = array($viewResolver);
            }
        }
        if (empty($this->viewResolvers)) {
            $this->logger->warning('Could not find any bean of type ViewResolver, falling back to default strategy.');
            $this->viewResolvers = $this->getDefaultStrategies("Ocelot\\Mvc\\Web\\Servlet\\ViewResolver");
        }
    }