private function loadFile($file, $ext)
    {
        $filename = $this->fixFilename($file, $ext);

        if (!is_readable($filename)) {
            throw new NotFoundException('file', $file);
        }

        return file_get_contents($filename);
    }