Implement PreferenceByKeyHandler