Return provider object in promise, when created
Take full provider object for initializing the resources
Initialize the resource after provider is added