public void execute(Path path) throws IOException { QuercusPage page = parse(path); WriteStream os = new WriteStream(StdoutStream.create()); os.setNewlineString("\n"); os.setEncoding("iso-8859-1"); Env env = createEnv(page, os, null, null); env.start(); try { env.execute(); } catch (QuercusDieException e) { log.log(Level.FINER, e.toString(), e); } catch (QuercusExitException e) { log.log(Level.FINER, e.toString(), e); } catch (QuercusErrorException e) { log.log(Level.FINER, e.toString(), e); } finally { env.close(); os.flush(); } }