public function processPath($path)
    {
        $path = $this->replaceDoubleOpeningBrackets($path);
        $path = $this->convertSingleOpeningSquareBracketsToPipes($path);
        $path = $this->replaceBracketEscapeSequenceWithSingleOpeningBrackets($path);
        $this->constructPathNameLexer();
        $path = $this->templateRenderer->renderString($path);
        $this->restoreOriginalLexer();
        $path = $this->removeUnwantedCharactersFromString($path);

        return $path;
    }