* @param profile the profile
* @param reportLineItem the report line item.
* @return a new ProfileReportData object
*/
static ProfileReportData buildProfileReportData(ProfileInstance profile, ReportLineItem reportLineItem) {
ProfileReportData data = new ProfileReportData();
data.setProfileName(profile.getName());
data.setProfileId(profile.getUuid());
data.setCount(reportLineItem.getCount());
data.setSum(reportLineItem.getSum());
data.setAverage(reportLineItem.getAverage());
data.setMin(reportLineItem.getMinimum());
data.setMax(reportLineItem.getMaximum());
return data;
}