private Transformer newTransformer() throws TransformerConfigurationException {
        if(transformerFactory==null)
            transformerFactory = TransformerFactory.newInstance();
        return transformerFactory.newTransformer();
    }