public function getPath($name, $full_path = false)
    {
        $config = $this->getContainer()->get('config');
        $path = $config->getRegistry()->getStackEntry($name, null, 'paths');
        if (file_exists($path) && is_dir($path)) {
            $path = DirectoryHelper::slashDirname($path);
        }
        if (true===$full_path) {
            return $this->getAbsolutePath($path);
        }
        return $path;
    }