}
} catch( BuildException e ) { throw e; }
    private void transformTrax(            final File srcDir, final File toDir, final File xslFile,            final String includes, final String excludes, final String extension )        throws BuildException    {        FileInputStream fis = null;        try        {/* Attempt to parse the XSL file separately failed. No idea why?            fis = new FileInputStream( xslFile );            BufferedInputStream stream = new BufferedInputStream( fis );            InputSource in = new InputSource( stream );            final SAXParserFactory pfactory = SAXParserFactory.newInstance();            final SAXParser parser = pfactory.newSAXParser();            XMLReader xmlReader = parser.getXMLReader();            SAXSource source = new SAXSource( xmlReader, in );*/            ClassLoader cl = getClass().getClassLoader();            Thread.currentThread().setContextClassLoader( cl );            StreamSource source = new StreamSource( xslFile );            final TransformerFactory tfactory = TransformerFactory.newInstance();            final Transformer transformer = tfactory.newTransformer( source );            final RegexpFilter filter = new RegexpFilter( includes, excludes );            m_baseToDir = toDir;            m_baseSrcDir = srcDir.getAbsoluteFile();            String entrypoint = getEntryPoint();            if( "".equals( entrypoint ) )            {                transform( transformer, m_baseSrcDir, toDir, filter, extension );            }            else            {                File fileToConvert = new File( m_baseSrcDir, entrypoint );                transformFile(                  transformer, fileToConvert, m_baseSrcDir, entrypoint, extension, m_baseToDir );            }        }         catch( Exception e )        {            throw new BuildException( e.getMessage(), e );        }        finally        {            if( fis != null )            {                try                {                    fis.close();                }                 catch( IOException f )                {                    log( f.toString() );                }            }        }    }