code: private void handleAjaxAction(final HttpServletRequest req,
        final HttpServletResponse resp, final Session session, final ProjectManager manager)
        throws ServletException, IOException {
  
      final String ajaxName = getParam(req, "ajax");
      final HashMap<String, Object> ret = new HashMap<>();
  
      if (ajaxName.equals("fetchallprojects")) {
        final List<Project> projects = manager.getProjects();
        final List<SimplifiedProject> simplifiedProjects =
            toSimplifiedProjects(projects);
        ret.put("projects", simplifiedProjects);
      } else if (ajaxName.equals("fetchuserprojects")) {
        handleFetchUserProjects(req, session, manager, ret);
      }
  
      this.writeJSON(resp, ret);
    }
docs: ProjectServlet class now handles ajax requests. It returns a
  
  @SimplifiedProject object: information regarding projects, and information regarding user and
  project association