code: void rebase(ContainerMetadata baseMetadata) {
          Preconditions.checkArgument(baseMetadata.getContainerId() == this.containerId, "ContainerId mismatch");
          Preconditions.checkArgument(baseMetadata.isRecoveryMode() == this.isRecoveryMode(), "isRecoveryMode mismatch");
          this.baseMetadata = baseMetadata;
          this.maximumActiveSegmentCount = baseMetadata.getMaximumActiveSegmentCount();
          this.baseNewSegmentCount = getNewSegmentCount(baseMetadata);
          resetNewSequenceNumber();
      }
docs: Rebases this UpdateTransaction to the given ContainerMetadata.
  
  @param baseMetadata The ContainerMetadata to rebase onto.