public InvestigationOcsQuestionsVoCollection listInvestigationOcsQuestions(Integer[] serviceIds) { if (serviceIds == null || serviceIds.length == 0) return null; StringBuffer sb = new StringBuffer(); sb.append(" from Investigation as i1_1 where i1_1.id in "); sb.append("("); for (int i = 0; i < serviceIds.length; i++) { sb.append(serviceIds[i]); if (i < (serviceIds.length - 1)) sb.append(", "); } sb.append(")"); List list = getDomainFactory().find(sb.toString()); return InvestigationOcsQuestionsVoAssembler.createInvestigationOcsQuestionsVoCollectionFromInvestigation(list); }