code: public HistoryReference getHistoryReference(int historyReferenceId) {
          DefaultHistoryReferencesTableEntry entry = getEntryWithHistoryId(historyReferenceId);
          if (entry != null) {
              return entry.getHistoryReference();
          }
          return null;
      }
docs: Returns the history reference with the given ID. If the history reference is not found {@code null} is returned.
  
  @param historyReferenceId the ID of the history reference that will be searched
  @return the history reference, or {@code null} if not found