Date to, int maxCount) {
try {
ArrayList<ProviderResultModel> result = new ArrayList<ProviderResultModel>();
List<GenericMonitoringData> list = copperMonitoringService.getList(new ProviderDataFilter(id), from, to, maxCount);
for (GenericMonitoringData genericMonitoringData: list){
result.add(new ProviderResultModel(genericMonitoringData));
}
return result;
} catch (RemoteException e) {
throw new RuntimeException(e);
}