for (String definitionToDisplay : displayOrder) {
definitionArrayIds[index++] = measurementDefMap.get(definitionToDisplay).getId();
}
UserPreferences prefs = UserSessionManager.getUserPreferences();
MeasurementUserPreferences mprefs = new MeasurementUserPreferences(prefs);
ArrayList<Long> range = mprefs.getMetricRangePreferences().getBeginEndTimes();
//now retrieve metric display summaries
GWTServiceLookup.getMeasurementChartsService().getMetricDisplaySummariesForCompatibleGroup(
EntityContext.forGroup(group), definitionArrayIds, range.get(0), range.get(1), false,
new AsyncCallback<ArrayList<MetricDisplaySummary>>() {