code: private static synchronized TransformerFactory getTransformerFactory()
      {
          if (transformerFactory == null)
          {
              transformerFactory = TransformerFactory.newInstance();
              transformerFactory.setAttribute(javax.xml.XMLConstants.ACCESS_EXTERNAL_DTD, "");
              transformerFactory.setAttribute(javax.xml.XMLConstants.ACCESS_EXTERNAL_STYLESHEET, "");
          }
          return transformerFactory;
      }
docs: Get the transformer factory.
  
  @return The transformer factory.