public class LocalRequestProcessor {
public HttpResponse getLocalResponse(String uri, HttpRequest requestFromBrowser) throws Exception {
HttpResponse httpResponse = new NoCacheHttpResponse("");
if (uri.indexOf("/dyn/pro/") != -1) {
// httpResponse = handleDyn(uri, requestFromBrowser, httpResponse, true);
httpResponse = new SimpleHttpResponse("This feature is available only in Sahi Pro");
} else if (uri.indexOf("/dyn/") != -1) {
httpResponse = handleDyn(uri, requestFromBrowser, httpResponse, false);
} else if (uri.indexOf("/scripts/") != -1) {
String fileName = URLParser.scriptFileNamefromURI(
requestFromBrowser.uri(), "/scripts/");