MessageHandler.setScreenLogger(fopLogger);
    public void transform()        throws ilTransformerException {                        try {            Log4JLogger fopLogger = new Log4JLogger(logger);            ByteArrayOutputStream out = new ByteArrayOutputStream();                        Driver driver = new Driver();            logger.info("Started driver");            driver.setLogger(fopLogger);            driver.setInputSource(new InputSource(getFoInputStream()));            driver.setRenderer(Driver.RENDER_PDF);            driver.setOutputStream(out);            logger.info("Driver run()");            driver.run();                        // Set pdf byte array            this.setPdf(out.toByteArray());            //logger.info(getPdfString());        } catch (UnsupportedEncodingException e) {            throw new ilTransformerException(e);        } catch (IOException e) {            throw new ilTransformerException(e);        } catch (FOPException e) {            throw new ilTransformerException(e);        }    }