7 public class Dispatch {
8 public static Map<Object, Object> handle(Handler handler, Request req) {
9 try(Environment.Frame f = new Environment().frame()) {
12 return(handler.handle(req));
15 } catch(Throwable t) {
16 t.printStackTrace((PrintStream)req.env.get("jagi.errors"));
17 handler = new jrw.resp.HttpError(500);