String timestamp = Revision.calendarToString(Calendar.getInstance(TimeZone.getTimeZone("UTC")));
int newRevId = (oldVersion == -1) ? 1 : oldVersion + 1;
Revision newRev = new Revision(newRevId, timestamp, minorChange, contributor, summary);
newRev.setUnpackedText(content);
SavePageResult result;
int retries = 0;
while (true) {
result = savePage(connection, title, newRev, oldVersion, null, siteinfo, "", namespace);
page.addStats(result.stats);
if (!result.success && retries < Options.WIKI_SAVEPAGE_RETRIES) {