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

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

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