         self.operationQueue?.waitUntilAllOperationsAreFinished()
         
         return wasSuccessful
-    }
-    
-    func updateAndFinalizeLocalChanges(insertedOrUpdatedManagedObjects:Array<AnyObject>,deletedManagedObjects:Array<AnyObject>)->Bool
-    {
-        for object in insertedOrUpdatedManagedObjects
-        {
-            var managedObject:NSManagedObject = object as! NSManagedObject
-            managedObject.setValue(NSNumber(short: CKSLocalStoreRecordChangeType.RecordNoChange.rawValue), forKey: CKSIncrementalStoreLocalStoreChangeTypeAttributeName)
-        }
-        for object in deletedManagedObjects
-        {
-            var managedObject:NSManagedObject = object as! NSManagedObject
-            self.localStoreMOC?.deleteObject(managedObject)
-        }
-        
-        var error:NSErrorPointer = nil
-        self.localStoreMOC?.save(error)
-        if error == nil
-        {
-            return true
-        }
-        return false
     }
     
     func localChangesInServerRepresentation(#localChanges:(insertedOrUpdatedManagedObjects:Array<AnyObject>,deletedManagedObjects:Array<AnyObject>))->(insertedOrUpdatedCKRecords:Array<AnyObject>,deletedCKRecordIDs:Array<AnyObject>)

    
    func applyServerChangesToLocalDatabase(insertedOrUpdatedCKRecords:Array<AnyObject>,deletedCKRecordIDs:Array<AnyObject>)->Bool
    {
        
        
        return true
    }
    
    func applyLocalChangesToServer(insertedOrUpdatedCKRecords:Array<AnyObject>,deletedCKRecordIDs:Array<AnyObject>)->Bool

                moreComing = returnValue.moreComing
            }
            
            return self.applyServerChangesToLocalDatabase(insertedOrUpdatedCKRecords, deletedCKRecordIDs: deletedCKRecordIDs)
        }
        
        return false
