protected function getTargetPath($pathname)
    {
        $filesystem      = new Filesystem();
        $templatesFolder = $this->getConfigKey('Folders', 'templates');
        $folderDiff      = '/' . $filesystem->findShortestPath(
                SetupHelper::getRootFolder(),
                $templatesFolder
            );

        return (string)$this->removeTemplateExtension(str_replace($folderDiff, '', $pathname));
    }