protected function findFile($module, $template)
    {
        if (! isset($this->modulesMap[$module])) {
            return false;
        }
        $tpl   = str_replace('/', PHP_DS, $template);
        $found = glob($this->modulesMap[$module] . $tpl . '.*');
        if (! $found) {
            return false;
        }
        $file = $found[0];

        $this->templatesMap[$module . '::' . $template] = $file;

        return $file;
    }