 public class WatchCoreDataProxy: NSObject {
     
     let sharedAppGroup:String = "group.com.makeandbuild.activitybuilder"
-//    let sharedAppGroup:String = ""
     
     public class var sharedInstance : WatchCoreDataProxy {
         struct Static {

        }
    }
    
    
    
    
    
    
//    public var sharedAppGroup: NSString = ""
//    
//    public class var sharedInstance : WatchCoreDataProxy {
//        struct Static {
//            static var onceToken : dispatch_once_t = 0
//            static var instance : WatchCoreDataProxy? = nil
//        }
//        dispatch_once(&Static.onceToken) {
//            Static.instance = WatchCoreDataProxy()
//        }
//        
//        return Static.instance!
//    }
//    
//    public func sendActivityToWatch() {
//        
//    }
//    
//    public func setStepToWatch() {
//        
//    }
//    
//    // MARK: - Core Data stack
//    
//    lazy var applicationDocumentsDirectory: NSURL = {
//        
//        let urls = NSFileManager.defaultManager().URLsForDirectory(.DocumentDirectory, inDomains: .UserDomainMask)
//        return urls[urls.count-1] as NSURL
//        }()
//    
//    lazy var managedObjectModel: NSManagedObjectModel = {
//        
//        let proxyBundle = NSBundle(identifier: "com.makeandbuild.WatchCoreDataProxy")
//        let modelURL = proxyBundle?.URLForResource("WatchModel", withExtension: "momd")!
//        
//        return NSManagedObjectModel(contentsOfURL: modelURL!)!
//        }()
//    
//    lazy var persistentStoreCoordinator: NSPersistentStoreCoordinator? = {
//        
//        let containerPath = NSFileManager.defaultManager().containerURLForSecurityApplicationGroupIdentifier(self.sharedAppGroup)?.path
//        let sqlitePath = NSString(format: "%@/%@", containerPath!, "WatchModel")
//        let url = NSURL(fileURLWithPath: sqlitePath);
//        
//        let  model = self.managedObjectModel;
//
//        var coordinator: NSPersistentStoreCoordinator? = NSPersistentStoreCoordinator(managedObjectModel: model)
//        var error: NSError? = nil
//        
//        var failureReason = "There was an error creating or loading the application's saved data."
//        if coordinator!.addPersistentStoreWithType(NSSQLiteStoreType, configuration: nil, URL: url, options: nil, error: &error) == nil {
//            coordinator = nil
//            // Report any error we got.
//            var dict = [String: AnyObject]()
//            dict[NSLocalizedDescriptionKey] = "Failed to initialize the application's saved data"
//            dict[NSLocalizedFailureReasonErrorKey] = failureReason
//            dict[NSUnderlyingErrorKey] = error
//            error = NSError(domain: "YOUR_ERROR_DOMAIN", code: 9999, userInfo: dict)
//            
//            NSLog("Unresolved error \(error), \(error!.userInfo)")
//            abort()
//        }
//        
//        return coordinator
//        }()
//
//    lazy var managedObjectContext: NSManagedObjectContext? = {
//        
//        let coordinator = self.persistentStoreCoordinator
//        if coordinator == nil {
//            return nil
//        }
//        var managedObjectContext = NSManagedObjectContext()
//        managedObjectContext.persistentStoreCoordinator = coordinator
//        return managedObjectContext
//        }()
//    
//    func saveContext () {
//        if let moc = self.managedObjectContext {
//            var error: NSError? = nil
//            if moc.hasChanges && !moc.save(&error) {
//                NSLog("Unresolved error \(error), \(error!.userInfo)")
//                abort()
//            }
//        }
//    }
}

        let proxyBundle = NSBundle(identifier: "com.makeandbuild.WatchCoreDataProxy")
        
        // The managed object model for the application. This property is not optional. It is a fatal error for the application not to be able to find and load its model.
        let modelURL = proxyBundle?.URLForResource("Model", withExtension: "momd")!

        return NSManagedObjectModel(contentsOfURL: modelURL!)!
