bug in <foreach support: getUpdatedFieldsByScope().get(scope) returns a Set<FieldType> so contains(fieldType.getId()) can never return true.