def _resolve_service_class(class_name, service_providers):
for plugin in service_providers.itervalues():<EOL><INDENT>if plugin.__class__.__name__ == class_name:<EOL><INDENT>return plugin<EOL><DEDENT><DEDENT>raise plugins.NoSuchPluginError(<EOL>'<STR_LIT>'<EOL>'<STR_LIT>' % (<EOL>class_name,<EOL>[<EOL>plugin.__class__.__name__<EOL>for plugin in service_providers.itervalues()<EOL>],<EOL>)<EOL>)<EOL>
**NOTE**: This must be remved once the service_class spec entry is fully
deprecated
Retrieves a service plugin class from the class name instead of the
provider name
Args:
    class_name(str): Class name of the service plugin to retrieve
    service_providers(dict): provider_name->provider_class of the loaded
        service providers
Returns:
    class: Class of the plugin that matches that name
Raises:
    lago.plugins.NoSuchPluginError: if there was no service plugin that
        matched the search