public InvestigationQuestionShortVoCollection listInformatonMessagesForInvestigation(Integer investigationId, Integer parentId)//WDEV-16762 { if(investigationId == null) throw new CodingRuntimeException("investigationId is null in method listInformatonMessagesForInvestigation"); DomainFactory factory = getDomainFactory(); Investigation domInvest = (Investigation)factory.getDomainObject(Investigation.class, investigationId); if (domInvest == null) throw new DomainRuntimeException("No investigation found for id = " + investigationId); List infoQuestions = new ArrayList(); Iterator it = domInvest.getAssocQuestions().iterator(); while(it.hasNext()) { InvestigationQuestion invQuest = (InvestigationQuestion)it.next(); if(!invQuest.getQuestion().isIsQuestion().booleanValue()) infoQuestions.add(invQuest); } InvestigationQuestionShortVoCollection voCollInvQuestions = InvestigationQuestionShortVoAssembler.createInvestigationQuestionShortVoCollectionFromInvestigationQuestion(infoQuestions); for(int i=0;i<voCollInvQuestions.size();i++) { if(domInvest.getInvestigationIndex() != null) { voCollInvQuestions.get(i).setInvestigationName(domInvest.getInvestigationIndex().getName()); voCollInvQuestions.get(i).setInvestigaionId(investigationId);//WDEV-16762 voCollInvQuestions.get(i).setParentId(parentId);// WDEV-16762 } } return voCollInvQuestions; }