class ImportFilesService {

	public void importFiles(List<String> files, boolean deleteAfterImport) {
		checkNotNull(files, "Must provide files");

		Transactions transactions = transactionsService.retrieve();

		for (String path : files) {
			List<Transaction> fileTransactions = importFile(path);
			transactions = addTransactions(transactions, fileTransactions);
		}
		transactionsService.update(transactions);
		if (deleteAfterImport) {
			deleteFiles(files);
		}
	}

	@Inject  ImportFilesService(Window window, TransactionsService transactionsService);

}