205206207208209210211212213214215
context.setHandler(handler); } context.setAttribute("processor", processor); // add context contexts.addHandler(context); handler.initialize(); context.start(); return context; } public synchronized void remove(Object context) throws Exception {