public function pageAction()
    {
        $path = $this->params()->fromRoute('path');
        $page = $this->queryService->findPublishedPageByPath(trim($path, '/'));

        if ($page instanceof NullPage) {
            /** @var Response $response */
            $response = $this->getResponse();
            $response->setStatusCode(Response::STATUS_CODE_404);
            return null;
        }

        return new ViewModel(array('page' => $page));
    }