try
{
System.setOut(newOut);
System.setErr(newOut);
Associative mappings = PersistentHashMap.EMPTY;
mappings = mappings.assoc(RT.CURRENT_NS, RT.CURRENT_NS.get());
mappings = mappings.assoc(RT.OUT, newRtOut);
mappings = mappings.assoc(RT.ERR, newRtOut);
mappings = applyBindings(bindings, mappings);
Var.pushThreadBindings(mappings);
threadBindingPushed = true;
returnValue = Compiler.load(new StringReader(script));