@HandlesEvent("updateSubject")
public Resolution updateSubject() {
String message = null;
// retrieve the original entities
Subject subject = (Subject)this.getContext().getAttributeFromSession("subject");
Standard standard = this.subjectService
.getStandardById(this.standardId);
subject.setName(this.name);
subject.setStandard(standard);
subject.setIsActive(this.isActive);
subject.setSyllabus(this.syllabus);
this.subjectService.save(subject);
message = EsimsUtils.createInfoMessage(this.getContext()
.getContextPath(), this.name
+ "</strong> was updated succesfully");