Source:
private void runOperation(BranchId branch, DispoSet setToEdit, DispoSetData newSet) { OperationReport report = new OperationReport(); String operation = newSet.getOperation(); ArtifactReadable author = getQuery().findUser(); if (operation.equals(DispoStrings.Operation_Import)) { try { HashMap<String, DispoItem> nameToItemMap = getItemsMap(branch, setToEdit); DispoImporterApi importer; if (setToEdit.getDispoType().equalsIgnoreCase("codeCoverage")) { importer = importerFactory.createImporter(ImportFormat.LIS, dispoConnector); } else { importer = importerFactory.createImporter(ImportFormat.TMO, dispoConnector); } List<DispoItem> itemsFromParse = importer.importDirectory(nameToItemMap, new File(setToEdit.getImportPath()), report); List<DispoItem> itemsToCreate = new ArrayList<>(); List<DispoItem> itemsToEdit = new ArrayList<>(); for (DispoItem item : itemsFromParse) { if (item.getGuid() == null) { itemsToCreate.add(item); report.addEntry(item.getName(), "", DispoSummarySeverity.NEW); } else { itemsToEdit.add(item); } } if (!report.getStatus().isFailed()) { if (itemsToCreate.size() > 0) { createDispoItems(branch, setToEdit.getGuid(), itemsToCreate); } if (itemsToEdit.size() > 0) { editDispoItems(branch, setToEdit.getGuid(), itemsToEdit, true, "Import"); } } } catch (Exception ex) { throw new OseeCoreException(ex); } } else if (operation.equals(DispoStrings.Operation_MassSendStatus)) { MassSendDispoItemStatus(branch, setToEdit); } List<Note> notesList = setToEdit.getNotesList(); Note genOpNotes = generateOperationNotes(operation); notesList.add(genOpNotes); newSet.setNotesList(notesList); newSet.setTime(new Date()); getWriter().updateOperationSummary(author, branch, setToEdit.getGuid(), report); }

Target:
private void runOperation(BranchId branch, DispoSet setToEdit, DispoSetData newSet) { OperationReport report = new OperationReport(); String operation = newSet.getOperation(); ArtifactReadable author = getQuery().findUser(); if (operation.equals(DispoStrings.Operation_Import)) { try { HashMap<String, DispoItem> nameToItemMap = getItemsMap(branch, setToEdit); DispoImporterApi importer; if (setToEdit.getDispoType().equalsIgnoreCase("codeCoverage")) { importer = importerFactory.createImporter(ImportFormat.LIS, dispoConnector); } else { importer = importerFactory.createImporter(ImportFormat.TMO, dispoConnector); } List<DispoItem> itemsFromParse = importer.importDirectory(nameToItemMap, new File(setToEdit.getImportPath()), report); List<DispoItem> itemsToCreate = new ArrayList<>(); List<DispoItem> itemsToEdit = new ArrayList<>(); for (DispoItem item : itemsFromParse) { if (item.getGuid() == null) { itemsToCreate.add(item); report.addEntry(item.getName(), "", DispoSummarySeverity.NEW); } else { itemsToEdit.add(item); } } if (!report.getStatus().isFailed()) { if (itemsToCreate.size() > 0) { createDispoItems(branch, setToEdit.getGuid(), itemsToCreate); } if (itemsToEdit.size() > 0) { editDispoItems(branch, setToEdit.getGuid(), itemsToEdit, true, "Import"); } } } catch (Exception ex) { throw new OseeCoreException(ex); } } else if (operation.equals(DispoStrings.Operation_MassSendStatus)) { MassSendDispoItemStatus(branch, setToEdit); } List<Note> notesList = setToEdit.getNotesList(); Note genOpNotes = generateOperationNotes(operation); notesList.add(genOpNotes); newSet.setNotesList(notesList); newDate.setTime(System.currentTimeMillis()); newSet.setTime(newDate); getWriter().updateOperationSummary(author, branch, setToEdit.getGuid(), report); }