code: public static HarEntry createHarEntry(int historyId, int historyType, HttpMessage httpMessage) {
          HarEntry entry = createHarEntry(httpMessage);
          entry.setCustomFields(createMessageHarCustomFields(historyId, historyType, httpMessage.getNote()));
          return entry;
      }
docs: Creates a {@code HarEntry} from the given message with additional custom fields for the history ID/type and note.
  
  @param historyId the history ID of the HTTP message.
  @param historyType the history type of the HTTP message.
  @param httpMessage the HTTP message.
  @return the {@code HarEntry}, never {@code null}.
  @since TODO add version
  @see #createMessageHarCustomFields(int, int, String)