Source:
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 = String.valueOf(fIdToString.get(id)); ySeries.put(name, new YModel(name, tempEntry.getValue())); } boolean complete = ss.waitUntilBuilt(0) || filter.getEnd() <= currentEnd; return TmfCommonXAxisResponseFactory.create(TITLE, xValues, ySeries.build(), complete); }

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); }