// Create a HashMap, name it "object" and then bind the <a> data into it, keyed as "a"...
smooks.addVisitor(new Bean(HashMap.class, "object").bindTo("a", "a"));
// On every <a> fragment, apply a simple template and bind the templating result to
// beanId "orderItem_xml" ...
smooks.addVisitor(new FreeMarkerTemplateProcessor(new TemplatingConfiguration("${object.a}").setUsage(BindTo.beanId("orderItem_xml"))), "a");
JMSRouter jmsRouter = new JMSRouter();
jmsRouter.setDestinationName("objectAQueue");
jmsRouter.setBeanId("orderItem_xml");
jmsRouter.setCorrelationIdPattern("${object.a}");