DefaultResolverObjectFactory drof=(DefaultResolverObjectFactory)cfg.getResolverObjectFactory();
drof.setExternalResolverObjectFactory(new SpringBeanFactory());
Executor executor=new DefaultExecutor(cfg);
ObjectSource os = new HashMapObjectSource();
os.set("helloTo", "friend");
os.set("helloRepeat", 3);
os.set("genericStringInput", "11");
os.set("genericStringArrayInput", new String[]{"11", "22", "33"});
printDiv();
executor.execute("helloXml", os);
printDiv();
executor.execute("helloStatement", os);
printDiv();
executor.execute("literals", os);
printDiv();
os.set("dynamicResolver", new DynamicResolver());
executor.execute("dynamicResolver", os);
printDiv();
executor.execute("reference", os);