private void dispatch(HttpServletRequest request,
                        HttpServletResponse response, String page)
      throws IOException, ServletException {
    if (isPageToRedirect(page)) {
      response.sendRedirect(page);
    } else {
      RequestDispatcher dispatcher = this.getServletContext().getRequestDispatcher(page);
      dispatcher.forward(request, response);
    }
  }