*/
protected final void processRequest(final HttpServletRequest request,
final HttpServletResponse response)
throws ServletException, IOException {
MashupController mashupController = new MashupController();
String pathInfo = request.getPathInfo();
if (pathInfo!= null && pathInfo.length() > 0)
pathInfo = pathInfo.substring(1);
if(Mode.LOAD.getMode().equals(pathInfo)) {
mashupController.loadMashups(request, response);
} else if(Mode.SAVE.getMode().equals(pathInfo)) {
mashupController.saveMashup(request, response);
} else if(Mode.SHOW.getMode().equals(pathInfo)) {
mashupController.showMashups(request, response);
} else if(Mode.OPEN_LOCAL.getMode().equals(pathInfo)) {
mashupController.openMashupJsonFromLocal(request, response);
} else if(Mode.SAVE_LOCAL.getMode().equals(pathInfo)) {
mashupController.saveMashupJsonToLocal(request, response);
} else if(Mode.PREVIEW.getMode().equals(pathInfo)) {
mashupController.mashupPreview(request, response);
} else if(Mode.EXPORT_TO_W3C_WIGET.getMode().equals(pathInfo)) {
mashupController.exportToW3CWidget(request, response);
}
}