@Override
public void compress(Reader r, Writer w) throws Exception {
String script = "function hello(name) { return ('Hello, ' + name); }";
engine.eval(script);
Invocable inv = (Invocable) engine;
inv.invokeFunction("hello", "Scripting!!" );
throw new UnsupportedOperationException();
}
public static void main(String[] args) throws Exception {
new UglifyJSCompressor(ResourceType.JS).compress(null, null);