code: protected void handleLoginSuccess(USER_ENTITY userEntity, LoginSpecifiedOption option) {
          assertUserEntityRequired(userEntity);
          final USER_BEAN userBean = saveLoginInfoToSession(userEntity);
          if (userBean instanceof SyncCheckable) {
              ((SyncCheckable) userBean).manageLastestSyncCheckTime(timeManager.currentDateTime());
          }
          if (option.isRememberMe()) {
              saveRememberMeKeyToCookie(userEntity, userBean);
          }
          if (!option.isSilentLogin()) { // mainly here
              saveLoginHistory(userEntity, userBean, option);
              processOnBrightLogin(userEntity, userBean, option);
          } else {
              processOnSilentLogin(userEntity, userBean, option);
          }
      }
docs: Handle login success for the found login user.
  @param userEntity The found entity of the login user. (NotNull)
  @param option The option of login specified by caller. (NotNull)