URL mapped by SpringUI annotation does not react to Spring's locale change

I have a class:

@SpringUI(path ="/login")
public class LoginEntryPoint extends UI {

and a locale change interceptor:

@Configuration
public class ApplicationConfiguration extends WebMvcConfigurerAdapter{

    ....

    @Bean
    public LocaleChangeInterceptor localeChangeInterceptor() {
        LocaleChangeInterceptor localeChangeInterceptor = new LocaleChangeInterceptor();
        localeChangeInterceptor.setParamName("lang");
        return localeChangeInterceptor;
    }

    ....

}

However when I try to access /login?lang=lt it seems that interceptor does not participate in handeling this URL since calling org.springframework.context.i18n.LocaleContextHolder.getLocale() returns en_US locale.

I have created a test @Controller class and mapped it to URL login2. When accessing /login?lang=lt I get desired locale.

I am facing the same issue. is there any solution?