Index: lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/web/AuthoringAction.java =================================================================== diff -u -rd5e6bc9efa77c7b0a6932b1850527ba911934ae6 -r9433ee2ac442fe5c8c1e125f94e9320fceb25fff --- lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/web/AuthoringAction.java (.../AuthoringAction.java) (revision d5e6bc9efa77c7b0a6932b1850527ba911934ae6) +++ lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/web/AuthoringAction.java (.../AuthoringAction.java) (revision 9433ee2ac442fe5c8c1e125f94e9320fceb25fff) @@ -148,6 +148,7 @@ String maxInputs = request.getParameter(VoteAppConstants.MAX_INPUTS); if (maxInputs == null) { + AuthoringAction.logger.info("Since minNomcount is equal to null hence setting it to '0'"); maxInputs = "0"; } voteAuthoringForm.setMaxInputs(new Short(maxInputs)); @@ -282,6 +283,7 @@ .getAttribute(httpSessionID); String questionIndexToDelete = request.getParameter("questionIndex"); + AuthoringAction.logger.info("Question Index to delete" + questionIndexToDelete); List questionDTOs = (List) sessionMap.get(VoteAppConstants.LIST_QUESTION_DTO); List listFinalQuestionDTO = new LinkedList<>(); @@ -356,7 +358,7 @@ .getAttribute(httpSessionID); String questionIndex = request.getParameter("questionIndex"); - + AuthoringAction.logger.info("Question Index" + questionIndex); voteAuthoringForm.setEditableNominationIndex(questionIndex); List questionDTOs = (List) sessionMap.get(VoteAppConstants.LIST_QUESTION_DTO); @@ -518,6 +520,8 @@ String editNominationBoxRequest = request.getParameter("editNominationBoxRequest"); + AuthoringAction.logger.info("Edit nomination box request" + editNominationBoxRequest); + VoteGeneralAuthoringDTO voteGeneralAuthoringDTO = new VoteGeneralAuthoringDTO(); voteGeneralAuthoringDTO.setContentFolderID(contentFolderID); @@ -557,9 +561,11 @@ questionDTOs = AuthoringUtil.reorderUpdateListQuestionDTO(questionDTOs, voteQuestionDTO, editableNominationIndex); } else { + AuthoringAction.logger.info("Duplicate question entry therefore not adding"); //duplicate question entry, not adding } } else { + AuthoringAction.logger.info("In Request for Save and Edit"); //request for edit and save VoteQuestionDTO voteQuestionDTO = null; Iterator iter = questionDTOs.iterator(); @@ -584,6 +590,7 @@ editableNominationIndex); } } else { + AuthoringAction.logger.info("newNomination entry is blank,therefore not adding"); //entry blank, not adding } @@ -640,20 +647,23 @@ || voteAuthoringForm.getAssignedDataFlowObject() == 0)) { ActionMessage error = new ActionMessage("nominations.none.submitted"); errors.add(ActionMessages.GLOBAL_MESSAGE, error); + AuthoringAction.logger.error("Nominations not submitted"); } String maxNomCount = voteAuthoringForm.getMaxNominationCount(); if (maxNomCount != null) { if (maxNomCount.equals("0") || maxNomCount.contains("-")) { ActionMessage error = new ActionMessage("maxNomination.invalid"); errors.add(ActionMessages.GLOBAL_MESSAGE, error); + AuthoringAction.logger.error("Maximum votes in Advance tab is invalid"); } try { int intMaxNomCount = new Integer(maxNomCount).intValue(); } catch (NumberFormatException e) { ActionMessage error = new ActionMessage("maxNomination.invalid"); errors.add(ActionMessages.GLOBAL_MESSAGE, error); + AuthoringAction.logger.error("Maximum votes in Advance tab is invalid"); } } @@ -683,6 +693,7 @@ if (isNominationsDuplicate == true) { ActionMessage error = new ActionMessage("nominations.duplicate"); errors.add(ActionMessages.GLOBAL_MESSAGE, error); + AuthoringAction.logger.error("There are duplicate nomination entries."); } VoteGeneralAuthoringDTO voteGeneralAuthoringDTO = new VoteGeneralAuthoringDTO(); @@ -980,12 +991,13 @@ defaultContentID = voteService.getToolDefaultContentIdBySignature(VoteAppConstants.MY_SIGNATURE); if (defaultContentID == 0) { VoteUtils.cleanUpUserExceptions(request); + AuthoringAction.logger.error("Exception occured: No default content"); saveInRequestError(request, "error.defaultContent.notSetup"); return mapping.findForward(VoteAppConstants.ERROR_LIST); } } catch (Exception e) { VoteUtils.cleanUpUserExceptions(request); - logger.error("error getting the default content id: " + e.getMessage()); + AuthoringAction.logger.error("error getting the default content id: " + e.getMessage()); saveInRequestError(request, "error.defaultContent.notSetup"); return mapping.findForward(VoteAppConstants.ERROR_LIST); } @@ -995,14 +1007,14 @@ VoteContent voteContent = voteService.getVoteContent(new Long(defaultContentID)); if (voteContent == null) { VoteUtils.cleanUpUserExceptions(request); - logger.error("Exception occured: No default content"); + AuthoringAction.logger.error("Exception occured: No default content"); saveInRequestError(request, "error.defaultContent.notSetup"); return mapping.findForward(VoteAppConstants.ERROR_LIST); } } catch (Exception e) { - logger.error("other problems: " + e); + AuthoringAction.logger.error("other problems: " + e); VoteUtils.cleanUpUserExceptions(request); - logger.error("Exception occured: No default question content"); + AuthoringAction.logger.error("Exception occured: No default question content"); saveInRequestError(request, "error.defaultContent.notSetup"); return mapping.findForward(VoteAppConstants.ERROR_LIST); } @@ -1032,13 +1044,15 @@ String maxNomcount = voteContent.getMaxNominationCount(); if (maxNomcount.equals("")) { + AuthoringAction.logger.info("Since minNomcount is equal to null hence setting it to '0'"); maxNomcount = "0"; } voteAuthoringForm.setMaxNominationCount(maxNomcount); voteGeneralAuthoringDTO.setMaxNominationCount(maxNomcount); String minNomcount = voteContent.getMinNominationCount(); if ((minNomcount == null) || minNomcount.equals("")) { + AuthoringAction.logger.info("Since minNomcount is equal to null hence setting it to '0'"); minNomcount = "0"; } voteAuthoringForm.setMinNominationCount(minNomcount); @@ -1054,7 +1068,7 @@ private void saveInRequestError(HttpServletRequest request, String message) { ActionMessages errors = new ActionMessages(); errors.add(Globals.ERROR_KEY, new ActionMessage(message)); - logger.error("add " + message + " to ActionMessages:"); + AuthoringAction.logger.error("add " + message + " to ActionMessages:"); saveErrors(request, errors); } Index: lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/web/AuthoringUtil.java =================================================================== diff -u -r5773f84ed608838de3521ecde87c52f3c72d478c -r9433ee2ac442fe5c8c1e125f94e9320fceb25fff --- lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/web/AuthoringUtil.java (.../AuthoringUtil.java) (revision 5773f84ed608838de3521ecde87c52f3c72d478c) +++ lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/web/AuthoringUtil.java (.../AuthoringUtil.java) (revision 9433ee2ac442fe5c8c1e125f94e9320fceb25fff) @@ -78,15 +78,18 @@ if (!questionDTO.getDisplayOrder().equals(new Integer(intOriginalQuestionIndex).toString()) && !questionDTO.getDisplayOrder().equals(new Integer(replacedQuestionIndex).toString())) { + AuthoringUtil.logger.info("Normal Copy"); // normal copy tempQuestion = questionDTO; } else if (questionDTO.getDisplayOrder().equals(new Integer(intOriginalQuestionIndex).toString())) { // move type 1 + AuthoringUtil.logger.info("Move type 1"); tempQuestion = replacedQuestion; } else if (questionDTO.getDisplayOrder().equals(new Integer(replacedQuestionIndex).toString())) { // move type 1 + AuthoringUtil.logger.info("Move type 1"); tempQuestion = mainQuestion; } @@ -136,6 +139,9 @@ } public static boolean checkDuplicateNominations(List listQuestionDTO, String newQuestion) { + if (AuthoringUtil.logger.isDebugEnabled()) { + AuthoringUtil.logger.debug("New Question" + newQuestion); + } Map mapQuestion = AuthoringUtil.extractMapQuestion(listQuestionDTO); @@ -199,6 +205,9 @@ public static VoteContent saveOrUpdateVoteContent(IVoteService voteService, VoteAuthoringForm voteAuthoringForm, HttpServletRequest request, VoteContent voteContent, String strToolContentID) { + if (AuthoringUtil.logger.isDebugEnabled()) { + AuthoringUtil.logger.debug("ToolContentID" + strToolContentID); + } UserDTO toolUser = (UserDTO) SessionManager.getSession().getAttribute(AttributeNames.USER); String richTextTitle = request.getParameter(VoteAppConstants.TITLE); @@ -293,6 +302,7 @@ voteContent.setMaxExternalInputs(maxInputsShort); if (newContent) { + AuthoringUtil.logger.info("In New Content"); voteService.saveVoteContent(voteContent); } else { voteService.updateVote(voteContent); Index: lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/web/LearningAction.java =================================================================== diff -u -r522aabf2d31dd0506374a3e7b50fc0a4a83a989d -r9433ee2ac442fe5c8c1e125f94e9320fceb25fff --- lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/web/LearningAction.java (.../LearningAction.java) (revision 522aabf2d31dd0506374a3e7b50fc0a4a83a989d) +++ lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/web/LearningAction.java (.../LearningAction.java) (revision 9433ee2ac442fe5c8c1e125f94e9320fceb25fff) @@ -68,7 +68,6 @@ import org.lamsfoundation.lams.tool.vote.web.form.VoteLearningForm; import org.lamsfoundation.lams.usermanagement.dto.UserDTO; import org.lamsfoundation.lams.util.DateUtil; -import org.lamsfoundation.lams.util.MessageService; import org.lamsfoundation.lams.util.WebUtil; import org.lamsfoundation.lams.web.action.LamsDispatchAction; import org.lamsfoundation.lams.web.session.SessionManager; @@ -121,6 +120,7 @@ repopulateRequestParameters(request, voteLearningForm); String toolSessionID = request.getParameter(TOOL_SESSION_ID); + LearningAction.logger.info("Tool session ID" + toolSessionID); voteLearningForm.setToolSessionID(toolSessionID); String userID = request.getParameter(USER_ID); @@ -181,9 +181,11 @@ repopulateRequestParameters(request, voteLearningForm); String toolSessionID = request.getParameter(TOOL_SESSION_ID); + LearningAction.logger.info("Tool session id :" + toolSessionID); voteLearningForm.setToolSessionID(toolSessionID); String userID = request.getParameter(USER_ID); + LearningAction.logger.info("User id :" + userID); voteLearningForm.setUserID(userID); String revisitingUser = request.getParameter(REVISITING_USER); @@ -218,6 +220,7 @@ request.setAttribute(MAP_GENERAL_CHECKED_OPTIONS_CONTENT, mapQuestionsContent); } else { //this is not a revisiting user + LearningAction.logger.info("If not a revisiting user"); } voteLearningForm.resetCommands(); @@ -240,9 +243,11 @@ repopulateRequestParameters(request, voteLearningForm); String toolSessionID = request.getParameter(TOOL_SESSION_ID); + LearningAction.logger.info("Tool session id:" + toolSessionID); voteLearningForm.setToolSessionID(toolSessionID); String userID = request.getParameter(USER_ID); + LearningAction.logger.info("User id:" + userID); voteLearningForm.setUserID(userID); String revisitingUser = request.getParameter(REVISITING_USER); @@ -289,10 +294,12 @@ repopulateRequestParameters(request, voteLearningForm); String toolSessionID = request.getParameter(TOOL_SESSION_ID); + LearningAction.logger.info("Tool Session id :" + toolSessionID); voteLearningForm.setToolSessionID(toolSessionID); VoteSession voteSession = voteService.getSessionBySessionId(new Long(toolSessionID)); String userID = request.getParameter(USER_ID); + LearningAction.logger.info("User id:" + userID); voteLearningForm.setUserID(userID); VoteQueUsr voteQueUsr = voteService.getVoteUserBySession(new Long(userID), voteSession.getUid()); @@ -324,17 +331,17 @@ try { nextUrl = voteService.leaveToolSession(new Long(toolSessionID), new Long(userID)); } catch (DataMissingException e) { - logger.error("failure getting nextUrl: " + e); + LearningAction.logger.error("failure getting nextUrl: " + e); voteLearningForm.resetCommands(); //throw new ServletException(e); return (mapping.findForward(LEARNING_STARTER)); } catch (ToolException e) { - logger.error("failure getting nextUrl: " + e); + LearningAction.logger.error("failure getting nextUrl: " + e); voteLearningForm.resetCommands(); //throw new ServletException(e); return (mapping.findForward(LEARNING_STARTER)); } catch (Exception e) { - logger.error("unknown exception getting nextUrl: " + e); + LearningAction.logger.error("unknown exception getting nextUrl: " + e); voteLearningForm.resetCommands(); //throw new ServletException(e); return (mapping.findForward(LEARNING_STARTER)); @@ -359,9 +366,11 @@ repopulateRequestParameters(request, voteLearningForm); String toolSessionID = request.getParameter(TOOL_SESSION_ID); + LearningAction.logger.info("Tool session id:" + toolSessionID); voteLearningForm.setToolSessionID(toolSessionID); String userID = request.getParameter(USER_ID); + LearningAction.logger.info("User id:" + userID); voteLearningForm.setUserID(userID); String maxNominationCount = request.getParameter(MAX_NOMINATION_COUNT); @@ -399,6 +408,7 @@ voteLearningForm.setMaxNominationCountReached(new Boolean(true).toString()); voteGeneralLearnerFlowDTO.setMaxNominationCountReached(new Boolean(true).toString()); persistInRequestError(request, "error.maxNominationCount.reached"); + LearningAction.logger.error("You have selected too many nominations."); return (mapping.findForward(LOAD_LEARNER)); } @@ -531,6 +541,7 @@ VoteSession session = voteService.getSessionBySessionId(toolSessionId); VoteQueUsr leader = session.getGroupLeader(); + LearningAction.logger.info("Leader :" + leader); boolean isLeaderResponseFinalized = leader.isResponseFinalised(); @@ -549,13 +560,15 @@ IVoteService voteService = VoteServiceProxy.getVoteService(getServlet().getServletContext()); String toolSessionID = request.getParameter(AttributeNames.PARAM_TOOL_SESSION_ID); + LearningAction.logger.info("Tool Session Id" + toolSessionID); voteLearningForm.setToolSessionID(toolSessionID); String userID = request.getParameter("userID"); + LearningAction.logger.info("User Id:" + userID); voteLearningForm.setUserID(userID); String reflectionEntry = request.getParameter(ENTRY_TEXT); - logger.info("reflection entry: " + reflectionEntry); + LearningAction.logger.info("reflection entry: " + reflectionEntry); voteService.createNotebookEntry(new Long(toolSessionID), CoreNotebookConstants.NOTEBOOK_TOOL, MY_SIGNATURE, new Integer(userID), reflectionEntry); @@ -570,6 +583,7 @@ IVoteService voteService = VoteServiceProxy.getVoteService(getServlet().getServletContext()); String toolSessionID = request.getParameter(AttributeNames.PARAM_TOOL_SESSION_ID); + LearningAction.logger.info("toolSessionID:" + toolSessionID); VoteSession voteSession = voteService.getSessionBySessionId(new Long(toolSessionID)); VoteContent voteContent = voteSession.getVoteContent(); @@ -582,6 +596,7 @@ voteGeneralLearnerFlowDTO.setReflectionSubject(voteContent.getReflectionSubject()); String userID = request.getParameter("userID"); + LearningAction.logger.info("User Id :" + userID); voteLearningForm.setUserID(userID); NotebookEntry notebookEntry = voteService.getEntry(new Long(toolSessionID), CoreNotebookConstants.NOTEBOOK_TOOL, @@ -692,7 +707,7 @@ if (voteSession == null) { VoteUtils.cleanUpUserExceptions(request); - logger.error("error: The tool expects voteSession."); + LearningAction.logger.error("error: The tool expects voteSession."); return mapping.findForward(VoteAppConstants.ERROR_LIST); } @@ -703,7 +718,7 @@ VoteContent voteContent = voteSession.getVoteContent(); if (voteContent == null) { VoteUtils.cleanUpUserExceptions(request); - logger.error("error: The tool expects voteContent."); + LearningAction.logger.error("error: The tool expects voteContent."); persistInRequestError(request, "error.content.doesNotExist"); return mapping.findForward(VoteAppConstants.ERROR_LIST); } @@ -965,6 +980,7 @@ UserDTO user = (UserDTO) ss.getAttribute(AttributeNames.USER); if (user != null && user.getUserID() != null) { userID = user.getUserID().toString(); + LearningAction.logger.info("User Id : " + userID); voteLearningForm.setUserID(userID); } } @@ -977,6 +993,7 @@ if (strToolSessionId == null || strToolSessionId.length() == 0) { VoteUtils.cleanUpUserExceptions(request); // persistInRequestError(request, "error.toolSessionId.required"); + LearningAction.logger.error("error.toolSessionId.required"); return mapping.findForward(VoteAppConstants.ERROR_LIST); } else { try { @@ -985,7 +1002,7 @@ } catch (NumberFormatException e) { VoteUtils.cleanUpUserExceptions(request); // persistInRequestError(request, "error.sessionId.numberFormatException"); - logger.error("add error.sessionId.numberFormatException to ActionMessages."); + LearningAction.logger.error("add error.sessionId.numberFormatException to ActionMessages."); return mapping.findForward(VoteAppConstants.ERROR_LIST); } } @@ -995,13 +1012,13 @@ if (mode == null || mode.length() == 0) { VoteUtils.cleanUpUserExceptions(request); - logger.error("mode missing: "); + LearningAction.logger.error("mode missing: "); return mapping.findForward(VoteAppConstants.ERROR_LIST); } if (!mode.equals("learner") && !mode.equals("teacher") && !mode.equals("author")) { VoteUtils.cleanUpUserExceptions(request); - logger.error("mode invalid: "); + LearningAction.logger.error("mode invalid: "); return mapping.findForward(VoteAppConstants.ERROR_LIST); } voteLearningForm.setLearningMode(mode); @@ -1054,8 +1071,9 @@ VoteSession session = voteService.getSessionBySessionId(new Long(toolSessionId)); VoteQueUsr user = voteService.getVoteUserBySession(new Long(userId.intValue()), session.getUid()); if (user == null) { - logger.error("Unable to find specified user for Vote activity. Screens are likely to fail. SessionId=" - + new Long(toolSessionId) + " UserId=" + userId); + LearningAction.logger + .error("Unable to find specified user for Vote activity. Screens are likely to fail. SessionId=" + + new Long(toolSessionId) + " UserId=" + userId); } return user; } Index: lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/web/MonitoringAction.java =================================================================== diff -u -rccd762f1395f3dc6606766c2551bc6baa2a06b11 -r9433ee2ac442fe5c8c1e125f94e9320fceb25fff --- lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/web/MonitoringAction.java (.../MonitoringAction.java) (revision ccd762f1395f3dc6606766c2551bc6baa2a06b11) +++ lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/web/MonitoringAction.java (.../MonitoringAction.java) (revision 9433ee2ac442fe5c8c1e125f94e9320fceb25fff) @@ -36,6 +36,7 @@ import javax.servlet.http.HttpSession; import org.apache.commons.lang.StringEscapeUtils; +import org.apache.log4j.Logger; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; @@ -72,6 +73,7 @@ * @author Ozgur Demirtas */ public class MonitoringAction extends LamsDispatchAction implements VoteAppConstants { + private static Logger logger = Logger.getLogger(MonitoringAction.class.getName()); /** * main content/question content management and workflow logic @@ -99,6 +101,8 @@ IVoteService voteService = VoteServiceProxy.getVoteService(getServlet().getServletContext()); Long currentUid = WebUtil.readLongParam(request, "currentUid"); + MonitoringAction.logger.info("Current Uid" + currentUid); + VoteUsrAttempt voteUsrAttempt = voteService.getAttemptByUID(currentUid); voteUsrAttempt.setVisible(show); @@ -151,6 +155,7 @@ Long sessionUid = WebUtil.readLongParam(request, VoteAppConstants.ATTR_SESSION_UID, true); if (sessionUid == 0L) { sessionUid = null; + MonitoringAction.logger.info("Setting sessionUid to null"); } Long questionUid = WebUtil.readLongParam(request, VoteAppConstants.ATTR_QUESTION_UID, false); @@ -251,6 +256,7 @@ Long sessionUid = WebUtil.readLongParam(request, VoteAppConstants.ATTR_SESSION_UID, true); if (sessionUid == 0L) { + MonitoringAction.logger.info("Setting sessionUid to null"); sessionUid = null; } @@ -393,10 +399,12 @@ /* we have made sure TOOL_CONTENT_ID is passed */ String toolContentID = voteMonitoringForm.getToolContentID(); + MonitoringAction.logger.warn("Make sure ToolContentId is passed" + toolContentID); VoteContent voteContent = voteService.getVoteContent(new Long(toolContentID)); if (voteContent == null) { VoteUtils.cleanUpUserExceptions(request); + MonitoringAction.logger.error("Vote Content does not exist"); voteGeneralMonitoringDTO.setUserExceptionContentDoesNotExist(Boolean.TRUE.toString()); return (mapping.findForward(VoteAppConstants.ERROR_LIST)); } @@ -493,7 +501,7 @@ try { voteMonitoringForm.setToolContentID(strToolContentId); } catch (NumberFormatException e) { - //VoteMonitoringStarterAction.logger.error("add error.numberFormatException to ActionMessages."); + MonitoringAction.logger.error("Number Format Exception"); VoteUtils.cleanUpUserExceptions(request); return (mapping.findForward(VoteAppConstants.ERROR_LIST)); } Index: lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/web/VoteChartGeneratorAction.java =================================================================== diff -u -r5773f84ed608838de3521ecde87c52f3c72d478c -r9433ee2ac442fe5c8c1e125f94e9320fceb25fff --- lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/web/VoteChartGeneratorAction.java (.../VoteChartGeneratorAction.java) (revision 5773f84ed608838de3521ecde87c52f3c72d478c) +++ lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/web/VoteChartGeneratorAction.java (.../VoteChartGeneratorAction.java) (revision 9433ee2ac442fe5c8c1e125f94e9320fceb25fff) @@ -31,6 +31,7 @@ import javax.servlet.http.HttpServletResponse; import org.apache.commons.lang.StringUtils; +import org.apache.log4j.Logger; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; @@ -53,7 +54,7 @@ * @author Marcin Cieslak */ public class VoteChartGeneratorAction extends LamsDispatchAction { - + private static Logger logger = Logger.getLogger(VoteChartGeneratorAction.class.getName()); private static IVoteService voteService; @Override @@ -62,8 +63,8 @@ HttpServletResponse response) throws JSONException, IOException { String currentSessionId = request.getParameter("currentSessionId"); - Map nominationNames = new HashMap(); - Map nominationVotes = new HashMap(); + Map nominationNames = new HashMap<>(); + Map nominationVotes = new HashMap<>(); //request for the all session summary if ("0".equals(currentSessionId)) { @@ -86,6 +87,7 @@ //sessionId should not be blank } else if (!StringUtils.isBlank(currentSessionId)) { + VoteChartGeneratorAction.logger.warn("Session Id should not be blank"); VoteSession voteSession = getVoteService().getSessionBySessionId(new Long(currentSessionId)); VoteContent voteContent = voteSession.getVoteContent();