matchingInstances = query.list();
}
List<VariableInstanceDto> instanceResults = new ArrayList<VariableInstanceDto>();
for (VariableInstance instance : matchingInstances) {
VariableInstanceDto resultInstance = VariableInstanceDto.fromVariableInstance(instance);
instanceResults.add(resultInstance);
}
return instanceResults;
}