@@ -0,0 +1,1196 @@
+package org.t246osslab.easybuggy.core.listeners;%0D%0A%0D%0Aimport java.io.OutputStream;%0D%0Aimport java.io.PrintStream;%0D%0A%0D%0Aimport javax.servlet.ServletContextEvent;%0D%0Aimport javax.servlet.ServletContextListener;%0D%0Aimport javax.servlet.annotation.WebListener;%0D%0A%0D%0Aimport org.owasp.esapi.ESAPI;%0D%0A%0D%0A@WebListener%0D%0Apublic class InitializationListener implements ServletContextListener %7B%0D%0A    public void contextInitialized(ServletContextEvent event) %7B%0D%0A%0D%0A        /*%0D%0A         * Suppress noisy messages output by the ESAPI library. For more detail:%0D%0A         * https://stackoverflow.com/questions/45857064/how-to-suppress-messages-output-by-esapi-library%0D%0A         */%0D%0A        try %7B%0D%0A            PrintStream original = System.out;%0D%0A            PrintStream out = new PrintStream(new OutputStream() %7B%0D%0A                public void write(int b) %7B%0D%0A                    // Do nothing%0D%0A                %7D%0D%0A            %7D);%0D%0A            System.setOut(out);%0D%0A            System.setErr(out);%0D%0A            ESAPI.encoder();%0D%0A            System.setOut(original);%0D%0A        %7D catch (Exception e) %7B%0D%0A            // Do nothing%0D%0A        %7D%0D%0A    %7D%0D%0A%0D%0A    @Override%0D%0A    public void contextDestroyed(ServletContextEvent sce) %7B%0D%0A    %7D%0D%0A%7D%0D%0A

Improve issue#5, Suppress noisy ESAPI messages