code: private HistoryLimit limitOrNull(int pMaxEntries, long pMaxDuration) {
          return pMaxEntries != 0 || pMaxDuration != 0 ? new HistoryLimit(pMaxEntries, pMaxDuration) : null;
      }
docs: The limit or null if the entry should be disabled in the history store