public void removeDegreeFromStudent(int studentId, int degreeId) {
		if(!isValidId(studentId) || !isValidId(degreeId)) {
			return;
		}
		
		Student student = studentDao.getStudent(studentId);
		Set<Degree> degrees = student.getDegrees();
		
		if (student != null && degrees != null) {
			for (Degree degree : degrees) {
				if (degree.getId() == degreeId) {
					degrees.remove(degree);
				}
			}

			student.setDegrees(degrees);
			studentDao.saveStudent(student);
		}
	}