private function locateFile()
    {
        // Try to retrieve the theme file path from child or parent for first.
        // Fallback to Plugin templates path.
        $filePath = locate_template($this->templatesPath, false, false);

        // Looking for the file within the plugin if allowed.
        if (! $filePath) {
            $filePath = $this->defaultPath;
        }

        return $filePath;
    }