public function getCurrentPagePath()
    {

        if ($this->currentPagePath != null) {
            return $this->currentPagePath;
        }


        $pageOrderArray = $this->pageOrder->getPageOrder();
        $path = $this->GETValueOfIndexIfSetElseDefault('page', false);


        if (!empty($path) && !empty($pagePath = $this->getPathArrayFromString($path, $pageOrderArray))) {
            return $this->currentPagePath = $pagePath;
        }

        if (!empty($pageOrderArray) && empty($path)) {
            return $this->currentPagePath = [array_shift($pageOrderArray)];
        }

        return $this->currentPagePath = [new NotFoundPageImpl($this->container)];
    }