package it.reply.orchestrator.config;

import java.io.IOException;
import java.util.Properties;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.FilterType;
import org.springframework.core.io.ResourceLoader;

import alien4cloud.security.ResourceRoleService;
import alien4cloud.utils.AlienYamlPropertiesFactoryBeanFactory;

@Configuration
@ComponentScan(basePackages = { "alien4cloud", "org.elasticsearch.mapping" }, excludeFilters = {
    @ComponentScan.Filter(type = FilterType.REGEX, pattern = "alien4cloud.security.*"),
    @ComponentScan.Filter(type = FilterType.REGEX, pattern = "alien4cloud.audit.*"),
    @ComponentScan.Filter(type = FilterType.REGEX, pattern = "alien4cloud.ldap.*") })
public class Alien4CloudConfig {

  @Bean
  public ResourceRoleService getDummyRoleResourceService() {
    return new ResourceRoleService();
  }

  @Bean(name = { "alienconfig", "elasticsearchConfig" })
  public static Properties alienConfig(ResourceLoader resourceLoader) throws IOException {
    return AlienYamlPropertiesFactoryBeanFactory.get(resourceLoader).getObject();
  }

}

package it.reply.orchestrator.config;

import java.io.IOException;
import java.util.Properties;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.FilterType;
import org.springframework.core.io.ResourceLoader;

import alien4cloud.security.ResourceRoleService;
import alien4cloud.utils.AlienYamlPropertiesFactoryBeanFactory;

@Configuration
@ComponentScan(basePackages = { "alien4cloud", "org.elasticsearch.mapping" }, excludeFilters = {
    @ComponentScan.Filter(type = FilterType.REGEX, pattern = "alien4cloud.security.*"),
    @ComponentScan.Filter(type = FilterType.REGEX, pattern = "alien4cloud.audit.*"),
    @ComponentScan.Filter(type = FilterType.REGEX, pattern = "alien4cloud.ldap.*") })
public class Alien4CloudConfig {

  @Bean
  public ResourceRoleService getDummyRoleResourceService() {
    return new ResourceRoleService();
  }

  @Bean(name = { "alienconfig", "elasticsearchConfig" })
  public static Properties alienConfig(ResourceLoader resourceLoader) throws IOException {
    return AlienYamlPropertiesFactoryBeanFactory.get(resourceLoader).getObject();
  }

}

Remove unused import