static class Config {
@Bean(name=YarnSystemConstants.DEFAULT_ID_CONFIGURATION)
public YarnConfiguration yarnConfiguration() throws Exception {
ConfigurationFactoryBean factory = new ConfigurationFactoryBean();
factory.afterPropertiesSet();
return factory.getObject();
}
}