OutputStream out = new java.io.FileOutputStream("/home/smeyer/1.pdf");
Log4JLogger fopLogger = new Log4JLogger(logger); ByteArrayOutputStream out = new ByteArrayOutputStream();
    public void transform()        throws ilTransformerException {                        try {            OutputStream out = new java.io.FileOutputStream("/home/smeyer/1.pdf");                        Driver driver = new Driver();            logger.info("Started driver");            driver.setOutputStream(out);            //driver.setLogger((org.apache.avalon.framework.logger.Logger) logger);            //driver.setLogger(logger);            //MessageHandler.setScreenLogger((org.apache.avalon.framework.logger.Logger) logger);                        driver.setRenderer(Driver.RENDER_PDF);            driver.setInputSource(new InputSource(getFoInputStream()));            logger.info("Driver run()");            driver.run();                        setPdfString(out.toString());        } catch (UnsupportedEncodingException e) {            throw new ilTransformerException(e);        } catch (IOException e) {            throw new ilTransformerException(e);        } catch (FOPException e) {            throw new ilTransformerException(e);        }    }