         context = NSManagedObjectContext(concurrencyType: .MainQueueConcurrencyType)
         context!.parentContext = parentContext!
         context!.addObserverToGetPermanentIDsBeforeSaving()
-        context!.name = "Main context"
+        if context!.respondsToSelector(Selector("name")) {
+            context!.name = "Main context"
+        }
         SugarRecordLogger.logLevelVerbose.log("Created MAIN context")
         return context!
     }

    :param: notification Notification that fired this method call
    */
    func mergeChanges(notification: NSNotification) {
        SugarRecordLogger.logLevelInfo.log("Merging changes to context \(self.name)")
        self.mergeChangesFromContextDidSaveNotification(notification)
        NSNotificationCenter.defaultCenter().postNotificationName(DefaultCDStack.Constants.autoSavingKVOKey, object: nil)
    }

        context = NSManagedObjectContext(concurrencyType: .PrivateQueueConcurrencyType)
        context!.persistentStoreCoordinator = persistentStoreCoordinator!
        context!.addObserverToGetPermanentIDsBeforeSaving()
        if context!.respondsToSelector(Selector("name")) {
            context!.name = "Root saving context"
        }
        SugarRecordLogger.logLevelVerbose.log("Created Root Saving context")
        return context!
    }
    
