try {
String path = request.getParameter("path");
WebAppContext context = (WebAppContext) _apps.get(path);
if (context != null) {
System.out.println("Undeploying app at " + path);
context.stop();
_handlerColl.removeHandler(context);
_apps.remove(path);
}
response.getWriter().println("Undeployed");
((Request)request).setHandled(true);