'Register a resource by name.'

def register_resource_by_name(self, resource_name, plural_name=None):

    resource = self._create_resource_instance(resource_name, plural_name)
    self.register_resource(resource)
