matchingHistoricCaseActivityInstances = query.list();
}
List<HistoricCaseActivityInstanceDto> historicCaseActivityInstanceResults = new ArrayList<HistoricCaseActivityInstanceDto>();
for (HistoricCaseActivityInstance historicCaseActivityInstance : matchingHistoricCaseActivityInstances) {
HistoricCaseActivityInstanceDto resultHistoricCaseActivityInstance = HistoricCaseActivityInstanceDto.fromHistoricCaseActivityInstance(historicCaseActivityInstance);
historicCaseActivityInstanceResults.add(resultHistoricCaseActivityInstance);
}
return historicCaseActivityInstanceResults;
}