super(id);
boolean isLocalUser = authorizedUserService.isLocalUser();
PasswordTextField passwordTextField = new PasswordTextField("currentPassword");
passwordTextField.setVisible(isLocalUser);
passwordTextField.setRequired(isLocalUser);
passwordTextField.add(new CurrentPasswordMatcher());
form.add(passwordTextField);
passwordField.setRequired(false);
passwordField.setVisible(isLocalUser);
rePasswordField.setRequired(false);
rePasswordField.setVisible(isLocalUser);