I haven't read the entire thread, but it looks to me like you can do whatever it is you're doing with java.util.prefs.Preferences

db