final Map<Long,Map<String,Boolean>> questionMap = new LinkedHashMap<>(); Map<String ,List<LMSExamPaperQuestionReference>> map = new LinkedHashMap<>(); List<LMSExamPaperQuestionReference> examPaperQuestionReferences = (List<LMSExamPaperQuestionReference>)examPaperQuestionReferenceCriteria.list(); for(int i =0;i<examPaperQuestionReferences.size();i++){ String groupName = examPaperQuestionReferences.get(i).getExamQuestion().getQuestionGroup(); if (!map.containsKey(groupName)){ map.put(examPaperQu