Source:
<code>public TmfModelResponse<ITmfVirtualTableModel<EventTableLine>> fetchLines(VirtualTableQueryFilter queryFilter, @Nullable IProgressMonitor monitor) { @Nullable ITmfFilter filter = extractFilter(queryFilter); @Nullable ITmfFilter searchFilter = extractSearchFilter(queryFilter); @Nullable TmfCollapseFilter collapseFilter = extractCollapseFilter(queryFilter); Map<Long, ITmfEventAspect<?>> aspects = getAspectsFromColumnsId(queryFilter.getColumnsId()); if (aspects.isEmpty()) { return new TmfModelResponse<>(new TmfVirtualTableModel<EventTableLine>(Collections.emptyList(), Collections.emptyList(), queryFilter.getIndex(), 0), ITmfResponse.Status.COMPLETED, CommonStatusMessage.COMPLETED); } boolean forwardSearch = queryFilter.getCount() >= 0; TableEventRequest request; if (filter != null) { request = filteredTableRequest(Math.abs(queryFilter.getCount()), queryFilter.getIndex(), aspects, filter, searchFilter, forwardSearch, collapseFilter, monitor); } else { request = tableRequest(Math.abs(queryFilter.getCount()), queryFilter.getIndex(), aspects, searchFilter, forwardSearch, collapseFilter, monitor); request.setEventCount(getTrace().getNbEvents()); } getTrace().sendRequest(request); try { request.waitForCompletion(); <START> if (request.isCancelled()) { return new TmfModelResponse(null, ITmfResponse.Status.CANCELLED, CommonStatusMessage.TASK_CANCELLED); } <END> } catch (InterruptedException e) { return new TmfModelResponse<>(null, ITmfResponse.Status.FAILED, e.getMessage()); } List<Long> columnsIds = new ArrayList<>(aspects.keySet()); TmfVirtualTableModel<EventTableLine> model = new TmfVirtualTableModel<>(columnsIds, request.getEventLines(), queryFilter.getIndex(), request.getCurrentCount()); return new TmfModelResponse<>(model, ITmfResponse.Status.COMPLETED, CommonStatusMessage.COMPLETED); }</code><technical_language>move out of try/catch</technical_language>

Target:
public TmfModelResponse<ITmfVirtualTableModel<EventTableLine>> fetchLines(VirtualTableQueryFilter queryFilter, @Nullable IProgressMonitor monitor) { @Nullable ITmfFilter filter = extractFilter(queryFilter); @Nullable ITmfFilter searchFilter = extractSearchFilter(queryFilter); @Nullable TmfCollapseFilter collapseFilter = extractCollapseFilter(queryFilter); Map<Long, ITmfEventAspect<?>> aspects = getAspectsFromColumnsId(queryFilter.getColumnsId()); if (aspects.isEmpty()) { return new TmfModelResponse<>(new TmfVirtualTableModel<EventTableLine>(Collections.emptyList(), Collections.emptyList(), queryFilter.getIndex(), 0), ITmfResponse.Status.COMPLETED, CommonStatusMessage.COMPLETED); } boolean forwardSearch = queryFilter.getCount() >= 0; TableEventRequest request; if (filter != null) { request = filteredTableRequest(Math.abs(queryFilter.getCount()), queryFilter.getIndex(), aspects, filter, searchFilter, forwardSearch, collapseFilter, monitor); } else { request = tableRequest(Math.abs(queryFilter.getCount()), queryFilter.getIndex(), aspects, searchFilter, forwardSearch, collapseFilter, monitor); request.setEventCount(getTrace().getNbEvents()); } getTrace().sendRequest(request); try { request.waitForCompletion(); } catch (InterruptedException e) { return new TmfModelResponse<>(null, ITmfResponse.Status.FAILED, e.getMessage()); } if (request.isCancelled()) { return new TmfModelResponse<>(null, ITmfResponse.Status.CANCELLED, CommonStatusMessage.TASK_CANCELLED); } List<Long> columnsIds = new ArrayList<>(aspects.keySet()); TmfVirtualTableModel<EventTableLine> model = new TmfVirtualTableModel<>(columnsIds, request.getEventLines(), queryFilter.getIndex(), request.getCurrentCount()); return new TmfModelResponse<>(model, ITmfResponse.Status.COMPLETED, CommonStatusMessage.COMPLETED); }