class SignInEventListener implements ApplicationListener<SignInEvent> {

    @Override
    public void onApplicationEvent(SignInEvent event) {
        userService.addDefaultHabit(event.getUser().getId(), "en");
    }

    @Autowired public  SignInEventListener(UserService userService);

}