code: @Nullable
    public static Templates newTemplates (@Nonnull final TransformerFactory aTransformerFactory,
                                          @Nonnull final Source aSource)
    {
      ValueEnforcer.notNull (aTransformerFactory, "TransformerFactory");
      ValueEnforcer.notNull (aSource, "Source");
  
      try
      {
        return aTransformerFactory.newTemplates (aSource);
      }
      catch (final TransformerConfigurationException ex)
      {
        LOGGER.error ("Failed to parse " + aSource, ex);
        return null;
      }
    }
docs: Create a new XSLT Template for the passed resource.
  
  @param aTransformerFactory
  The transformer factory to be used. May not be <code>null</code>.
  @param aSource
  The resource to be templated. May not be <code>null</code>.
  @return <code>null</code> if something goes wrong