protected function resolveConst($const, Page $page = null)
    {
        $value = '';
        switch (strtolower($const)) {
            case 'url':
                $value = (null !== $page) ? $page->getUrl() : '';
            default:
                break;
        }

        return $value;
    }