boilerplate sync adapter code