public void save(String className, int classYear) {
		if (className != null && classYear != 0) {

			// Make the class...
			String classId;
			if (this.classToEdit != null) {
				classId = this.classToEdit.getClassNo();
			} else {
				classId = UUID.randomUUID().toString();
			}
			this.currentClass = new Class(classId, classYear, className);

			// Send it to the Server
			Action toDo;
			if (this.classToEdit != null) {
				toDo = new Action(ActionType.UPDATE);
			} else {
				toDo = new Action(ActionType.CREATE);
			}

			Request out = new Request(Session.getInstance(), toDo,
					this.currentClass);
			this.client = new EasyTeachClient(out);
			this.client.run();
			Response in = this.client.getResponse();
			System.out.println(in.getStatus() + ": " + in.getResponseMessage());

			// Make all the relations...
			if (this.relations == null) {
				this.relations = new ResourceSet();
			}
			for (Resource r : this.studentsEnrolledSet) {
				User u = (User) r;
				this.relations
						.add(new ClassUserRelation(classId, u.getUserNo()));
			}

			// Send those to the server
			toDo = new Action(ActionType.UPDATE, "class");
			out = new Request(Session.getInstance(), toDo, this.relations);
			this.client = new EasyTeachClient(out);
			this.client.run();
			in = this.client.getResponse();
			System.out.println(in.getStatus() + ": " + in.getResponseMessage());

			this.allStudents.refreshData(this.studentSelectionSet);
			this.enrolledStudents.refreshData(this.studentsEnrolledSet);
		}
	}