MasterPasswordChangeValidator val = new MasterPasswordChangeValidator(this);
val.validateChangeRequest(req);
//validate the new config
MasterPasswordConfigValidator validator = new MasterPasswordConfigValidator(this);
validator.validateMasterPasswordConfig(config);
//save the current config to fall back to
MasterPasswordConfig oldConfig = new MasterPasswordConfig(this.masterPasswordConfig);
String oldMasterPasswdDigest = masterPasswdDigest;