code: public Entry buildWithHistory() {
          if (originalEntry == null) {
              throw new IllegalArgumentException("originalEntry is not set");
          }
  
          if (history == null) {
              history = new History();
          }
  
          Entry entryWithoutHistory = new EntryBuilder(originalEntry).history(new History()).build();
          history.getHistoricEntries().add(entryWithoutHistory);
          return build();
      }
docs: Builds a new entry and place the original one in the history list.
  
  @return the new entry.