Source:
public boolean extractQuestionDetails( Map<String, String[]> requestParameters, FeedbackQuestionType questionType) { String numOfRubricChoicesString = HttpRequestHelper.getValueFromParamMap(requestParameters, Const.ParamsNames.FEEDBACK_QUESTION_RUBRIC_NUM_COLS); String numOfRubricSubQuestionsString = HttpRequestHelper.getValueFromParamMap(requestParameters, Const.ParamsNames.FEEDBACK_QUESTION_RUBRIC_NUM_ROWS); if (numOfRubricChoicesString == null || numOfRubricSubQuestionsString == null) { return false; } String hasAssignedWeightsString = HttpRequestHelper.getValueFromParamMap(requestParameters, Const.ParamsNames.FEEDBACK_QUESTION_RUBRIC_WEIGHTS_ASSIGNED); boolean hasAssignedWeights = "on".equals(hasAssignedWeightsString); int numOfRubricChoices = Integer.parseInt(numOfRubricChoicesString); int numOfRubricSubQuestions = Integer.parseInt(numOfRubricSubQuestionsString); List<Double> rubricWeights = getRubricWeights(requestParameters, numOfRubricChoices, hasAssignedWeights); List<List<Double>> rubricWeightsForEachCell = getRubricWeightsForEachCell( requestParameters, numOfRubricChoices, numOfRubricSubQuestions, hasAssignedWeights, rubricWeights); List<String> rubricChoices = getRubricChoices(requestParameters, numOfRubricChoices); List<String> rubricSubQuestions = getSubQuestions(requestParameters, numOfRubricSubQuestions); List<List<String>> rubricDescriptions = getRubricQuestionDescriptions(requestParameters, numOfRubricChoices, numOfRubricSubQuestions); setRubricQuestionDetails(hasAssignedWeights, rubricWeights, rubricWeightsForEachCell, rubricChoices, rubricSubQuestions, rubricDescriptions); if (!isValidDescriptionSize()) { initializeRubricDescriptions(); } if (hasAssignedWeights && !isValidWeightSize()) { initializeRubricWeights(); } return true; }

Target:
public boolean extractQuestionDetails( Map<String, String[]> requestParameters, FeedbackQuestionType questionType) { String numOfRubricChoicesString = HttpRequestHelper.getValueFromParamMap(requestParameters, Const.ParamsNames.FEEDBACK_QUESTION_RUBRIC_NUM_COLS); String numOfRubricSubQuestionsString = HttpRequestHelper.getValueFromParamMap(requestParameters, Const.ParamsNames.FEEDBACK_QUESTION_RUBRIC_NUM_ROWS); if (numOfRubricChoicesString == null || numOfRubricSubQuestionsString == null) { return false; } String hasAssignedWeightsString = HttpRequestHelper.getValueFromParamMap(requestParameters, Const.ParamsNames.FEEDBACK_QUESTION_RUBRIC_WEIGHTS_ASSIGNED); boolean hasAssignedWeights = "on".equals(hasAssignedWeightsString); int numOfRubricChoices = Integer.parseInt(numOfRubricChoicesString); int numOfRubricSubQuestions = Integer.parseInt(numOfRubricSubQuestionsString); List<List<Double>> rubricWeightsForEachCell = getRubricWeightsForEachCell( requestParameters, numOfRubricChoices, numOfRubricSubQuestions, hasAssignedWeights); List<String> rubricChoices = getRubricChoices(requestParameters, numOfRubricChoices); List<String> rubricSubQuestions = getSubQuestions(requestParameters, numOfRubricSubQuestions); List<List<String>> rubricDescriptions = getRubricQuestionDescriptions(requestParameters, numOfRubricChoices, numOfRubricSubQuestions); setRubricQuestionDetails(hasAssignedWeights, rubricWeightsForEachCell, rubricChoices, rubricSubQuestions, rubricDescriptions); if (!isValidDescriptionSize()) { initializeRubricDescriptions(); } return true; }