}
if (!validationContext.hasErrors()) {
realm.changePassword(currentUserDetails.getUsername(), password1);
return new PasswordChangedView();
}
getModel().put("validationContext", validationContext);
return new ChangePasswordView();
} catch (SecurityRealmException e) {