package org.osiam.addons.administration.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.support.ResourceBundleMessageSource;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

@Configuration
public class WebMvcConfig extends WebMvcConfigurerAdapter {

    @Bean
    public ResourceBundleMessageSource messageSource() { // don't change the method name!
        ResourceBundleMessageSource resource = new ResourceBundleMessageSource();

        resource.setBasenames("l10n/general");

        return resource;
    }

    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("/css/**").addResourceLocations("classpath:/css/");
    }
}

@@ -477,16 +477,38 @@
    @Bean
+(name=%22messageSource%22)
 %0A    pub
@@ -539,17 +539,27 @@
 eSource 
-m
+initializeM
 essageSo
@@ -570,41 +570,8 @@
 () %7B
- // don't change the method name!
 %0A   

use annotation to define the bean name instead of using the methodname