private Response saveEdits(FitNesseContext context, Request request, WikiPage page) {
Response response = new SimpleResponse();
setData();
VersionInfo commitRecord = page.commit(data);
if (commitRecord != null) {
response.addHeader("Current-Version", commitRecord.getName());
}
context.recentChanges.updateRecentChanges(page);
if (request.hasInput("redirect"))
response.redirect("", request.getInput("redirect").toString());