if (pathInfo == null || pathInfo.equals("/")) {
worker = new ViewWorker();
} else if (pathInfo.startsWith("/view/")) {
worker = new ViewWorker();
} else if (pathInfo.startsWith("/buffalo/")) {
worker = new BuffaloWorker();
} else if (pathInfo.startsWith("/upload/")) {
worker = new UploadWorker();
} else {
throw new ServletException("Cannot find the request worker!");
}