 //                                if let workoutOtherType = self.resultWorkoutData.otherType {
 //                                    syncLog.setValue(workoutOtherType, forKey: "workoutOtherType")
 //                                }
-//                            }
+                            }
 //
 //                            var error: NSError?
 //                            do {

                    },
                    success: { (savedKey) in
//
//                        if let uuid = self.resultWorkoutData.UUID?.UUIDString {
//                            let appDelegate = UIApplication.sharedApplication().delegate as! AppDelegate
//                            let managedContext = appDelegate.managedObjectContext!
//

//                                if let workoutOtherType = self.resultWorkoutData.otherType {
//                                    syncLog.setValue(workoutOtherType, forKey: "workoutOtherType")
//                                }
                            } else {
//                                let entity =  NSEntityDescription.entityForName("SyncLog", inManagedObjectContext: managedContext)
//                                let syncLog = NSManagedObject(entity: entity!, insertIntoManagedObjectContext:managedContext)
//                                syncLog.setValue(uuid, forKey: "uuid")
