/**
* Performs the change
*/
private void doChange() {
UserInformation userInformation = getContext().getUserInformation();
Preferences preferences = userInformation.getPreferences();
PasswordGenerationPreferences newGenerationPreferences =
new PasswordGenerationPreferences(this.length,
this.lowerCaseLettersIncluded,
this.upperCaseLettersIncluded,
this.digitsIncluded,
this.specialCharactersIncluded);
Preferences newPreferences =
preferences.withPasswordGenerationPreferences(newGenerationPreferences);
accountService.changePreferences(userInformation.getUserId(),
newPreferences);
getContext().setUserInformation(
userInformation.withPreferences(newPreferences));