JSCompressorFactory jsCompressorFactory = null;
Boolean jscompress = Boolean.valueOf(System.getProperty("maqetta.zazl.jscompress", "false"));
if (jscompress) {
jsCompressorFactory = new ShrinksafeJSCompressorFactory();
}
JSOptimizerFactory jsOptimizerFactory = new AMDJSOptimizerFactory();
JSServlet jsServlet = new JSServlet(resourceLoader, jsOptimizerFactory, rhinoClassLoader, "zazl", null, null, jsCompressorFactory);
maqettaHTMLFilter = new MaqettaHTMLFilter(resourceLoader);
try {
System.out.println("Registering Zazl JavaScript servlet");