Refactored getProvider to getProviderForPath and updated docs.