matchingHistoricCaseInstances = query.list();
}
List<HistoricCaseInstanceDto> historicCaseInstanceDtoResults = new ArrayList<HistoricCaseInstanceDto>();
for (HistoricCaseInstance historicCaseInstance : matchingHistoricCaseInstances) {
HistoricCaseInstanceDto resultHistoricCaseInstanceDto = HistoricCaseInstanceDto.fromHistoricCaseInstance(historicCaseInstance);
historicCaseInstanceDtoResults.add(resultHistoricCaseInstanceDto);
}
return historicCaseInstanceDtoResults;
}