public function locate($path, $paths = null)
    {
        $paths = $paths ?: $this->getOption('paths');

        return $this->locator->locate(
            $path,
            $paths,
            $this->getOption('extensions')
        );
    }