if (currentDiff.getAddedEnd() >= 0
&& currentDiff.getAddedEnd() >= addedCurrent) {
newText = newArray[addedCurrent];
addedCurrent++;
}
wikiDiffs.add(new WikiDiff(oldText, newText, position));
// FIXME - this shouldn't be necessary
count++;
if (count > 5000) {
logger.warning("Infinite loop in DiffUtils.processDifference");
break;