// if mentioned value found, delete it
if (sSetting.equals(mainpref.settingsMap.get(key))) {
mainpref.put(key, null);
}
} else if (entry.getValue() instanceof ListSetting) {
ListSetting lSetting = (ListSetting) entry.getValue();
Collection<String> newItems = getCollection(mainpref, key, true);
if (newItems == null) continue;
// remove mentioned items from collection
for (String item : lSetting.getValue()) {
log("Deleting preferences: from list %s: %s\n", key, item);
newItems.remove(item);
}
mainpref.putCollection(entry.getKey(), newItems);
} else if (entry.getValue() instanceof ListListSetting) {