add CoreData serialization methods, that use NSManagedObjectContext.