public static void loadTransactions(SWDataClass swDataClass) {

		// Create the data objects for us to restore.
		SWDataClass tempData = new SWDataClass();

		// Wrap all in a try/catch block to trap I/O errors.

		// Open file to read from, named SavedObjects.sav.
		FileInputStream saveFile;
		try {
			saveFile = new FileInputStream(SAVE_FILE_DIRECTORY + "\\" + SAVE_FILE_NAME);
			ObjectInputStream save = new ObjectInputStream(saveFile);
			tempData = (SWDataClass) save.readObject();
			save.close(); // This also closes saveFile.
			
		} catch (FileNotFoundException e) {
			
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (ClassNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

		// Now we do the restore.
		// readObject() returns a generic Object, we cast those back
		// into their original class type.
		// For primitive types, use the corresponding reference class.

		// Close the file.

		// Copy the records from the temporary structure over to the data class
//		swDataClass.getTransactions().clear();

//		Iterator<Transaction> transactionIterator = tempData.getTransactions()
//				.iterator();
//		while (transactionIterator.hasNext()) {
//			swDataClass.getTransactions().add(transactionIterator.next());
//		}

		swDataClass = tempData;
		
		// All done.
	}