code: public void setHttpMessage(HttpMessage httpMessage, int historyType) {
          this.historyRef = null;
          this.httpMessage = httpMessage;
          this.historyType = historyType;
          alertViewPanel.setHttpMessage(httpMessage);
      }
docs: Sets the {@code HttpMessage} and the history type of the
  {@code HistoryReference} that will be created if the user creates the
  alert. The current session will be used to create the
  {@code HistoryReference}. The alert created will be added to the newly
  created {@code HistoryReference}.
  <p>
  Should be used when the alert is added to a temporary
  {@code HistoryReference} as the temporary {@code HistoryReference}s are
  deleted when the session is closed.
  </p>
  
  @param httpMessage
  the {@code HttpMessage} that will be used to create the
  {@code HistoryReference}, must not be {@code null}
  @param historyType
  the type of the history reference that will be used to create
  the {@code HistoryReference}
  
  @see Model#getSession()
  @see HistoryReference#HistoryReference(org.parosproxy.paros.model.Session,
  int, HttpMessage)