SAXTransformerFactory saxTransFact = (SAXTransformerFactory) transFact;
// create a ContentHandler
TransformerHandler transHand = saxTransFact
.newTransformerHandler(template);
transHand.setResult(new SAXResult(consumer));
return transHand;
} catch (TransformerConfigurationException e) {
e.printStackTrace();