private static Student getStudent(String studentName) throws IOException {
		List<Student> students = StudentDao.getStudentsByName(studentName);
		if (students.size() > 0) {
			Student studentToCheck = null;
			if (students.size() > 1) {
				// Ask the user for a specific id if more then one student were found
				System.out.println("More then one student found: ");
				for (Student student : students) {
					System.out.println(student.getName() + " (id " + student.getId() + ")");
				}
				System.out.print("Enter id for specific student: ");
				String studentIdString = inputReader.readLine();
				int studentId = 0;
				try {
					studentId = Integer.parseInt(studentIdString);
				} catch (NumberFormatException e) {
					System.out.println("Invalid student id.");
					return null;
				}
				for (Student student : students) {
					if (student.getId() == studentId) {
						studentToCheck = student;
						break;
					}
				}
				if (studentToCheck == null) {
					System.out.println("Could not find student with that id.");
					return null;
				}
			} else {
				studentToCheck = students.get(0);
			}
			return studentToCheck;
		} else {
			System.out.println("No student with that name found.");
			return null;
		}
	}