                 var keys = record.allKeys()
                 var values = record.dictionaryWithValuesForKeys(keys)
                 managedObject.setValuesForKeysWithDictionary(values)
+                managedObject.setValue(NSNumber(short: CKSLocalStoreRecordChangeType.RecordNoChange.rawValue), forKey: CKSIncrementalStoreLocalStoreChangeTypeAttributeName)
             }
         }
         

        return false
    }
    
    func deleteManagedObjects(fromCKRecordIDs ckRecordIDs:Array<AnyObject>)
    {
        
    }
    
    func insertedOrUpdatedCKRecords(fromManagedObjects managedObjects:Array<AnyObject>)->Array<AnyObject>

                        var values = ckRecord.dictionaryWithValuesForKeys(keys)
                        managedObject.setValuesForKeysWithDictionary(values)
                        ckRecordsWithTypeName[recordIDString] = nil
                        managedObject.setValue(NSNumber(short: CKSLocalStoreRecordChangeType.RecordNoChange.rawValue), forKey: CKSIncrementalStoreLocalStoreChangeTypeAttributeName)
                    }
                }
            }
