code: public ReplaceInList repairCommand(final ReplaceInList toRepair, final AddToList repairAgainst) {
          if (repairAgainst.getPosition() > toRepair.getPosition()) {
              return toRepair;
          }
          return new ReplaceInList(toRepair.getListId(), toRepair.getListVersionChange(), toRepair.getValue(),
                  toRepair.getPosition() + 1);
      }
docs: Repairs a {@link ReplaceInList} in relation to an {@link AddToList} command.
  
  @param toRepair
  The command to repair.
  @param repairAgainst
  The command to repair against.
  @return The repaired command.