public Transformer createTransformer(Source source)
public Transformer createTransformer()
    public Transformer createTransformer(Source source)            throws TransformerConfigurationException {        TransformerFactory tFactory = TransformerFactory.newInstance();        Transformer transformer = tFactory.newTransformer(source);        // transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION,        // "yes");        transformer.setOutputProperty(OutputKeys.INDENT, "yes");        transformer.setOutputProperty(OutputKeys.METHOD, "xml");        return transformer;    }