deployed.get(name).getApplication().postUndeployCleanup(deployed.get(name), false);
server.getHandler().applicationUndeployed(new WebServerApplicationEvent(server, this, deployed.get(name).getApplication()));
deployed.remove(name);
return true;
} catch (Exception e) {
server.getHandler().applicationUndeployed(new WebServerApplicationErrorEvent(this, server, deployed.get(name).getApplication(), e, e.getMessage()));
return false;
}
}