public static final String[] SPECIAL_ATTRIBUTES = { "SetUp", "TearDown" };
public Response makeResponse(FitNesseContext context, Request request) {
SimpleResponse response = new SimpleResponse();
HtmlPage html = context.pageFactory.newPage();
html.setMainTemplate("searchForm");
html.setTitle("Search Form");
html.setPageTitle(new PageTitle("Search Form"));
html.put("viewLocation", request.getResource());
html.setNavTemplate("viewNav");
html.put("pageTypeAttributes", PageType.values());
html.put("actionAttributes", SEARCH_ACTION_ATTRIBUTES);
html.put("navigationAttributes", SEARCH_NAVIGATION_ATTRIBUTES);
html.put("securityAttributes", SECURITY_ATTRIBUTES);
html.put("specialAttributes", SPECIAL_ATTRIBUTES);
html.put("request", request);
response.setContent(html.html());
return response;
}