public PathInvDetailsVo getPathInvDetailsForInvestigation(Integer idInvestigation) { DomainFactory factory = getDomainFactory(); List invDetails = factory.find("select inv.pathInvDetails from Investigation inv where inv.id = :idInv", new String[]{"idInv"}, new Object[]{idInvestigation}); if (invDetails != null && invDetails.size() > 0) return PathInvDetailsVoAssembler.createPathInvDetailsVoCollectionFromPathInvDetails(invDetails).get(0); return null; }