                 let objectId = self.objectIDForEntity(fetchRequest.entity!, withResourceIdentifier: resourceId)
                 let managedObject = context.object(with: objectId!) as! Palette
                 
-                let predicate = Predicate(format: "%K = %@", kPALResourceIdentifierAttributeName, resourceId)
+                let predicate = NSPredicate(format: "%K = %@", kPALResourceIdentifierAttributeName, resourceId)
                 let backingObj = results.filtered(using: predicate).first as! Palette
                 
                 managedObject.transformWithPalette(backingObj)

    // MARK: - NSIncrementalStore
    
    override func loadMetadata() throws {
        let uuid = ProcessInfo.processInfo().globallyUniqueString
        self.metadata = [NSStoreTypeKey : CachingIncrementalStore.storeType, NSStoreUUIDKey: uuid]
    }
    
    override func execute(_ request: NSPersistentStoreRequest, with context: NSManagedObjectContext?) throws -> AnyObject {
        let error: NSError? = nil
        if request.requestType == .fetchRequestType {
            return try self.executeFetchRequest(request, withContext: context)

            switch taskResult {
            case .success(let data):
                responseHandler(data)
            case .failure(let error):
                print(error)
            }
        }).resume()
    }
