         }
     }
     
-    public func insertOrUpdateEntity<T: NSManagedObject>(entityName: String, predicate: NSPredicate, itemHandler: ((item: T) -> Void)) -> Bool {
+    func insertOrUpdateEntity<T: NSManagedObject>(entityName: String, predicate: NSPredicate, itemHandler: ((item: T) -> Void)) -> Bool {
         
         if let existItem: T = fetchOneEntity(entityName, predicate: predicate) {
             itemHandler(item: existItem)

        return result
    }
    
    public func fetchEntity<T: NSManagedObject>(entityName: String,
                            predicate: NSPredicate? = nil,
                            sortDescriptor: NSSortDescriptor? = nil,
                            pageSize: Int = 0,

        return nil
    }
    
    func fetchOneEntity<T: NSManagedObject>(entityName: String,
                               predicate: NSPredicate? = nil,
                               sort sortDescriptor: NSSortDescriptor? = nil,
                                    completion: (item: T?, error: NSError?)->Void ) {
