private void prepareResponse(Request request) {
response = new SimpleResponse();
if (resultsDirectory == null)
resultsDirectory = context.getTestHistoryDirectory();
TestHistory history = new TestHistory();
String pageName = request.getResource();
history.readPageHistoryDirectory(resultsDirectory, pageName);
pageHistory = history.getPageHistory(pageName);
page = context.pageFactory.newPage();
String tags = "";
if (context.root != null){
WikiPagePath path = PathParser.parse(pageName);