Ability to get providers from the service locator

Added possibility to get providers from the service locator, if one is registered.