if (element.isUnchanged()) {
Log.e("DiscardedTags","Presented with unmodified element");
return;
}
boolean modified = false;
<BUG>newTags = new TreeMap<String, String>(); // zag this!
for (String key:element.getTags().keySet()) {</BUG>
Log.d("DiscardedTags","Checking " + key);
if (!redundantTags.contains(key)) {
newTags.put(key, element.getTags().get(key));

if (element.isUnchanged()) {
Log.e("DiscardedTags","Presented with unmodified element");
return;
}
boolean modified = false;
SortedMap<String, String> newTags = new TreeMap<String, String>();
for (String key:element.getTags().keySet()) {
Log.d("DiscardedTags","Checking " + key);
if (!redundantTags.contains(key)) {
newTags.put(key, element.getTags().get(key));
