docs: function resolveAndSetEventIdAndSeqNos(record, userRecord, state, context) {
    // Get the resolveEventIdAndSeqNos function to use
    const resolveEventIdAndSeqNos = settings.getResolveEventIdAndSeqNosFunction(context);
  
    if (!resolveEventIdAndSeqNos) {
      const errMsg = `FATAL - Cannot resolve event id & sequence numbers, since no 'resolveEventIdAndSeqNos' function is configured. Configure one & redeploy ASAP!`;
      context.error(errMsg);
      throw new FatalError(errMsg);
    }
  
    try {
      // Resolve the event id & sequence number(s)
      const eventIdAndSeqNos = resolveEventIdAndSeqNos(record, userRecord) || {};
  
      // Set the event id & sequence number(s) on the given message's state or unusable record's state
      setEventIdAndSeqNos(state, eventIdAndSeqNos);
  
      return eventIdAndSeqNos;
  
    } finally {
      // Cache a description of the record for logging purposes
      resolveAndSetRecordDesc(state);
    }
  }