protected void printEndTag(PageRequest request, PageResponse response,
Document hit, int hitIndex)
throws RegainException
{
// Get the search results
SearchResults results = SearchToolkit.getSearchResults(request);
String url = results.getHitUrl(hitIndex);
boolean beautified = getParameterAsBoolean("beautified", false);
if (beautified && url.startsWith("file://")) {
response.print(RegainToolkit.urlToFileName(url));
} else {