def _get_service_provider(self):
service_class = self._spec.get('<STR_LIT>', None)<EOL>if service_class is not None:<EOL><INDENT>warnings.warn(<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'<EOL>)<EOL>service_provider = _resolve_service_class(<EOL>class_name=service_class,<EOL>service_providers=self.service_providers,<EOL>)<EOL><DEDENT>else:<EOL><INDENT>service_provider = self.service_providers.get(<EOL>self._spec.get('<STR_LIT>', None),<EOL>None,<EOL>)<EOL><DEDENT>return service_provider<EOL>
**NOTE**: Can be reduced to just one get call once we remove support
for the service_class spec entry
Returns:
    class: class for the loaded provider for that vm_spec
    None: if no provider was specified in the vm_spec