code: public static XslTransformer getTransformer(File xslFile) throws TransformerConfigurationException {
      	if (xslFile == null) {
      		throw new IllegalArgumentException("xslFile is null");
      	}
          return getTransformer(new StreamSource(xslFile));
      }
docs: Get a wrapped XSL transformer instance for supplied stylesheet file.
  @param xslFile XSL file
  @return XSL transformer instance
  @throws TransformerConfigurationException if an error occurs while processing