public String logout() {
    username = "";
    password = credFactory.createPlainPassword("");
    requestedRole = UserRole.ENTERPRISE_MANAGER;
    requestedStoreId = 0;

    logoutEvent.fire(new LogoutEvent(user));
    user = null;

    FacesContext.getCurrentInstance().getExternalContext().invalidateSession();
    return NavigationElements.LOGIN.getNavigationOutcome();
  }
 public void setPassword(@NotNull String password) {
   this.password = credFactory.createPlainPassword(password);
 }
 @PostConstruct
 private void init() {
   password = credFactory.createPlainPassword("");
 }