     
     let packageFilename = lexicalModel.packageFilename
     let lexicalModelURL = URL(string: "https://api.keyman.com/model")!.appendingPathComponent(packageFilename)
-    
-//    if !checkCanExecute(batch) {
-//      return
-//    }
     
     do {
       try FileManager.default.createDirectory(at: Storage.active.lexicalModelDir(forID: lexicalModel.id),

                                    value: notification)
  }

  
  
  
  
  
  //MARK: - HTTPDownloadDelegate methods
  
  func downloadQueueFinished(_ queue: HTTPDownloader) {

    
    let isUpdate = Storage.active.userDefaults.userLexicalModels?.contains { $0.id == lexicalModel.id } ?? false
    
    if let batch = buildLexicalModelDownloadBatch(for: installableLexicalModels[0], fromPath: lexicalModelURL, asActivity: isUpdate ? .update : .download) {
      if !checkCanExecute(batch) {
        return
      }

      queueDownloadBatch(batch)
    }
  }
  
  /// - Returns: The current state for a lexical model
