final List<ServiceCallStatistics> stats = new LinkedList<ServiceCallStatistics>();
for (final String serviceName : executionTimes.keySet()) {
final List<Long> execTimes = executionTimes.get(serviceName);
ServiceCallStatistics stat = new ServiceCallStatistics();
stat.setCalls(execTimes.size());
stat.setServiceName(serviceName);
stat.setExecutionTimeMax(Collections.max(execTimes));
stat.setExecutionTimeMin(Collections.min(execTimes));
stat.setExecutionTimeAvg(getAvg(execTimes));
// TODO calc and set avg
stats.add(stat);
}
return stats;