}catch(FileNotFoundRuntimeException e){
content = "File ["+href+"] not found";
}
}
content = content.replaceAll("<", "<").replaceAll(">", ">");
final SimpleHttpResponse response = new SimpleHttpResponse("");
String highlighted = LogViewer.highlight(content, lineNumber);
highlighted = ("<h4>" + href.replace("\\\\", "\\") + "</h4>").concat(highlighted);
try {
response.setData(highlighted.getBytes("UTF8"));
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
response.setData(highlighted.getBytes());
}
response.resetRawHeaders();
return response;
}