The $provider class is not checked whether it exists so if a non-existant class is used than a fatal error is thrown. An exception should be thrown that will make it clear that the plugin could not be found