Save settings by java.util.prefs.Preferences