code: private void handleFetchUserProjects(final HttpServletRequest req, final Session session,
        final ProjectManager manager, final HashMap<String, Object> ret)
        throws ServletException {
      User user = null;
  
      // if key "user" is specified, follow this logic
      if (hasParam(req, "user")) {
        final String userParam = getParam(req, "user");
        if (userParam.isEmpty()) {
          user = session.getUser();
        } else {
          user = new User(userParam);
        }
      } else {
        // if key "user" is not specified, default to the session user
        user = session.getUser();
      }
  
      final List<Project> projects = manager.getUserProjects(user);
      final List<SimplifiedProject> simplifiedProjects = toSimplifiedProjects(projects);
      ret.put("projects", simplifiedProjects);
    }
docs: We know the intention of API call is to return project ownership based on given user. <br> If
  user provides an user name, the method honors it <br> If user provides an empty user name, the
  user defaults to the session user<br> If user does not provide the user param, the user also
  defaults to the session user<br>