code: @Nullable
    public static Transformer newTransformer (@Nonnull final TransformerFactory aTransformerFactory)
    {
      ValueEnforcer.notNull (aTransformerFactory, "TransformerFactory");
  
      try
      {
        return aTransformerFactory.newTransformer ();
      }
      catch (final TransformerConfigurationException ex)
      {
        LOGGER.error ("Failed to create transformer", ex);
        return null;
      }
    }
docs: Create a new XSLT transformer for no specific resource.
  
  @param aTransformerFactory
  The transformer factory to be used. May not be <code>null</code>.
  @return <code>null</code> if something goes wrong