updateInstance(instance) {
    let found = false;

    if (this._freeInstances.has(instance.uuid)) {
      this._freeInstances.set(instance.uuid, instance);
      found = true;
    }

    if (this._busyInstances.has(instance.uuid)) {
       this._busyInstances.set(instance.uuid, instance);
       found = true;
    }

    if (!found) {
      throw new DetoxInternalError(`Cannot update an unknown instance ${instance.uuid}`);
    }
  }
@param {import('./services/dto/GenyInstance')} instance