Source:
<code>public TmfModelResponse<ITmfCommonXAxisModel> fetchXY(TimeQueryFilter filter, @Nullable IProgressMonitor monitor) { ITmfXmlStateAttribute display = fDisplay; XmlXYEntry entry = fXmlEntry; ITmfStateSystem ss = entry.getStateSystem(); long[] xValues = filter.getTimesRequested(); Map<Integer, double[]> map = initSeries(filter); if (map.isEmpty()) { return TmfCommonXAxisResponseFactory.create(TITLE, xValues, Collections.emptyMap(), true); } long currentEnd = ss.getCurrentEndTime(); try { for (int i = 0; i < xValues.length; i++) { if (monitor != null && monitor.isCanceled()) { return TmfCommonXAxisResponseFactory.createCancelledResponse(CommonStatusMessage.TASK_CANCELLED); } long time = xValues[i]; if (time > currentEnd) { break; } else if (ss.getStartTime() <= time) { List<@NonNull ITmfStateInterval> full = ss.queryFullState(time); for (Entry<Integer, double[]> series : map.entrySet()) { int attributeQuark = display.getAttributeQuark(series.getKey(), null); Object value = full.get(attributeQuark).getValue(); setYValue(i, series.getValue(), extractValue(value), entry.getType()); } } } } catch (StateSystemDisposedException e) { return TmfCommonXAxisResponseFactory.createFailedResponse(e.getMessage()); } ImmutableMap.Builder<String, IYModel> ySeries = ImmutableMap.builder(); for (Entry<Integer, double[]> tempEntry : map.entrySet()) { Long id = fIdToQuark.inverse().get(tempEntry.getKey()); String name = <START> String.valueOf(fIdToString.get(id)); <END> ySeries.put(name, new YModel(name, tempEntry.getValue())); } boolean complete = ss.waitUntilBuilt(0) || filter.getEnd() <= currentEnd; return TmfCommonXAxisResponseFactory.create(TITLE, xValues, ySeries.build(), complete); }</code><technical_language>key for name map quark instead? a convention series name <trace>/<fullPathInTreeViewer></technical_language>

Target:
public TmfModelResponse<ITmfCommonXAxisModel> fetchXY(TimeQueryFilter filter, @Nullable IProgressMonitor monitor) { ITmfXmlStateAttribute display = fDisplay; XmlXYEntry entry = fXmlEntry; ITmfStateSystem ss = entry.getStateSystem(); long[] xValues = filter.getTimesRequested(); Map<Integer, double[]> map = initSeries(filter); if (map.isEmpty()) { return TmfCommonXAxisResponseFactory.create(TITLE, xValues, Collections.emptyMap(), true); } long currentEnd = ss.getCurrentEndTime(); try { for (int i = 0; i < xValues.length; i++) { if (monitor != null && monitor.isCanceled()) { return TmfCommonXAxisResponseFactory.createCancelledResponse(CommonStatusMessage.TASK_CANCELLED); } long time = xValues[i]; if (time > currentEnd) { break; } else if (ss.getStartTime() <= time) { List<@NonNull ITmfStateInterval> full = ss.queryFullState(time); for (Entry<Integer, double[]> series : map.entrySet()) { int attributeQuark = display.getAttributeQuark(series.getKey(), null); Object value = full.get(attributeQuark).getValue(); setYValue(i, series.getValue(), extractValue(value), entry.getType()); } } } } catch (StateSystemDisposedException e) { return TmfCommonXAxisResponseFactory.createFailedResponse(e.getMessage()); } ImmutableMap.Builder<String, IYModel> ySeries = ImmutableMap.builder(); for (Entry<Integer, double[]> tempEntry : map.entrySet()) { String name = String.valueOf(fQuarkToString.get(tempEntry.getKey())); ySeries.put(name, new YModel(name, tempEntry.getValue())); } boolean complete = ss.waitUntilBuilt(0) || filter.getEnd() <= currentEnd; return TmfCommonXAxisResponseFactory.create(TITLE, xValues, ySeries.build(), complete); }