code: public void loadBeans(Resource[] resources) throws IOException {
  		Closure beans = new Closure(this){
  			@Override
  			public Object call(Object... args) {
  				return beans((Closure)args[0]);
  			}
  		};
  		Binding b = new Binding();
  		b.setVariable("beans", beans);
  
  		GroovyShell shell = classLoader != null ? new GroovyShell(classLoader,b) : new GroovyShell(b);
          for (Resource resource : resources) {
              shell.evaluate(new InputStreamReader(resource.getInputStream()));
          }
  	}
docs: Loads a set of given beans
  @param resources The resources to load
  @throws IOException