@Inject
private CurrencyService currencyService;
@Override
protected void addInterceptors(InterceptorRegistry registry) {
UserDataInterceptor userDataInterceptor = new UserDataInterceptor();
userDataInterceptor.setJdbcOperations(jdbcOperations);
userDataInterceptor.setSettingService(settingService);
userDataInterceptor.setLanguageService(languageService);
userDataInterceptor.setStoreResolver(storeResolver);
userDataInterceptor.setCurrencyService(currencyService);
userDataInterceptor.setLanguageParam(env.getProperty("language.param", "language_code"));
userDataInterceptor.setCurrencyParam(env.getProperty("currency.param", "currency_code"));
registry.addInterceptor(userDataInterceptor);
}