private List<MetricMenuItemDescriptor> createGraphMenuItemDescriptors(int resourceId,
List<MeasurementSchedule> schedules) {
List<MetricMenuItemDescriptor> ret = new ArrayList<MetricMenuItemDescriptor>();
for (MeasurementSchedule schedule : schedules) {
MetricMenuItemDescriptor descriptor = new MetricMenuItemDescriptor();
fillBasicMetricMenuItemDescriptor(descriptor, resourceId, "measurementGraphMenuItem_", schedule);
descriptor.setMetricToken(resourceId + "," + schedule.getId());
ret.add(descriptor);
}
return ret;