docs: protected Interest replaceFinalComponent(Interest interest, long segmentNumber, byte marker) {
      Interest copied = new Interest(interest);
      Component lastComponent = Component.fromNumberWithMarker(segmentNumber, marker);
      Name newName = (SegmentationHelper.isSegmented(copied.getName(), marker))
          ? copied.getName().getPrefix(-1)
          : new Name(copied.getName());
      copied.setName(newName.append(lastComponent));
      return copied;
    }