@Autowired
	@Qualifier("miniYarnConfig")
	public void setConfiguration(org.apache.hadoop.conf.Configuration configuration) {
		// for now we need to override super method for
		// it not to fail due to two config objects in context
		super.setConfiguration(configuration);
	}
Use java config.

@author Janne Valkealahti
yarn/yarn/multi-context/src/test/java/org/springframework/yarn/examples/MultiContextJavaConfigTests.java