// Handles both address changes and saving
@HandlesEvent("saveForm")
public Resolution saveForm() {
String message = EsimsConstants._BLANK_STRING;
ReceivedApplicationForm applicationFormToEdit = (ReceivedApplicationForm) this
.getContext().getAttributeFromSession("raForm");
// setting the new values
applicationFormToEdit
.setPermanentHouseNameOrNumber(this.permanentHouseNameOrNumber);
applicationFormToEdit.setPermanentStreet(this.permanentStreet);
applicationFormToEdit
.setPermanentVillageOrTownOrCity(this.permanentVillageOrTownOrCity);
applicationFormToEdit.setPermanentPinCode(this.permanentPinCode);
applicationFormToEdit.setPermanentState(this.permanentState);
applicationFormToEdit
.setPermanentPhoneNumber(this.permanentPhoneNumber);
this.receivedApplicationFormService.save(applicationFormToEdit);
message = EsimsUtils.createInfoMessage(this.getContext()
.getContextPath(), "Form #<strong> "
+ applicationFormToEdit.getFormNumber()
+ "</strong> was updated succesfully");
this.getContext().removeAttributeFromSession("raForm");
FlashScope.getCurrent(this.getContext().getRequest(),true).put("message", message);
return new RedirectResolution(DisplayMessageAction.class, "forwardToMessagePage");