Source:
public TmfModelResponse<ITmfXyModel> 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 TmfXyResponseFactory.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 TmfXyResponseFactory.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); if (attributeQuark >= 0 && attributeQuark < full.size()) { Object value = full.get(attributeQuark).getValue(); setYValue(i, series.getValue(), extractValue(value), entry.getType()); } } } } } catch (StateSystemDisposedException e) { return TmfXyResponseFactory.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 TmfXyResponseFactory.create(TITLE, xValues, ySeries.build(), complete); }

Target:
public TmfModelResponse<ITmfXyModel> 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 TmfXyResponseFactory.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 TmfXyResponseFactory.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); if (attributeQuark >= 0 && attributeQuark < full.size()) { Object value = full.get(attributeQuark).getValue(); setYValue(i, series.getValue(), extractValue(value), entry.getType()); } } } } } catch (StateSystemDisposedException e) { return TmfXyResponseFactory.createFailedResponse(e.getMessage()); } ImmutableMap.Builder<String, IYModel> ySeries = ImmutableMap.builder(); fLock.readLock().lock(); try { for (Entry<Integer, double[]> tempEntry : map.entrySet()) { String name = String.valueOf(fQuarkToString.get(tempEntry.getKey())); ySeries.put(name, new YModel(name, tempEntry.getValue())); } } finally { fLock.readLock().unlock(); } boolean complete = ss.waitUntilBuilt(0) || filter.getEnd() <= currentEnd; return TmfXyResponseFactory.create(TITLE, xValues, ySeries.build(), complete); }