code: public static TransformerFactory getTF() {
          TransformerFactory tf = threadTF.get();
          if (tf == null) {
              tf = TransformerFactory.newInstance();
              threadTF.set(tf);
          }
          return tf;
      }
docs: Get a thread local transformer factory.
  
  @return The factory.