Use Editor.apply instead of commit on 2.3 or later.