'Write the current state of the local object back to the
CloudSearch service.'

def save(self):

    if self.save_fn:
        data = self.save_fn(self.domain.name, self.to_json())
        self.refresh(data)
