code: public AddToList repairLocalCommand(final AddToList toRepair, final AddToList repairAgainst) {
          if (toRepair.getPosition() == repairAgainst.getPosition()) {
              return createCommand(toRepair, toRepair.getPosition() + 1);
          }
          return repairRemoteCommand(toRepair, repairAgainst);
      }
docs: Repairs a remote {@link AddToList} in relation to an local {@link AddToList} command.
  
  @param toRepair
  The command to repair.
  @param repairAgainst
  The command to repair against.
  @return The repaired command.