@Override public StringBuilder getResponse( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { // get project from session or DB ProjectObject project = (ProjectObject) SessionManager.getProjectObject(request); // get parameter String CurrentSprintID = request.getParameter("SprintID"); SprintPlanHelper helper = new SprintPlanHelper(project); List<ISprintPlanDesc> plans = helper.loadListPlans(); ISprintPlanDesc currentPlan = null; if (CurrentSprintID == null) { currentPlan = helper.loadCurrentPlan(); } else { currentPlan = helper.loadPlan(CurrentSprintID); } SprintPlanUI spui = new SprintPlanUI(plans, currentPlan); Gson gson = new Gson(); return new StringBuilder(gson.toJson(spui)); }