public void run() {
ByteArrayOutputStream os=null;
try{
os = new ByteArrayOutputStream();
ObjectOutputStream o = new ObjectOutputStream(os);
o.writeObject(settingsModelSingleton);
prefs.putByteArray(SETTINGS_KEY, os.toByteArray());
} catch (IOException e) {
throw new RuntimeException(e);
} finally {
if (os!=null){