code: protected void load(ApplicationContext context, Object[] sources) {
  		if (logger.isDebugEnabled()) {
  			logger.debug(
  					"Loading source " + StringUtils.arrayToCommaDelimitedString(sources));
  		}
  		BeanDefinitionLoader loader = createBeanDefinitionLoader(
  				getBeanDefinitionRegistry(context), sources);
  		if (this.beanNameGenerator != null) {
  			loader.setBeanNameGenerator(this.beanNameGenerator);
  		}
  		if (this.resourceLoader != null) {
  			loader.setResourceLoader(this.resourceLoader);
  		}
  		if (this.environment != null) {
  			loader.setEnvironment(this.environment);
  		}
  		loader.load();
  	}
docs: Load beans into the application context.
  @param context the context to load beans into
  @param sources the sources to load