/** * Undeploy previously deployed deployable. * * @param gws Grizzly to undeploy from. * @param deploymentId Deployment identification. */ public final void undeploy(GrizzlyWebServer gws, DeploymentID deploymentId) { final Set<GrizzlyAdapter> adapters = deployed.get(deploymentId); for (GrizzlyAdapter adapter : adapters) { gws.removeGrizzlyAdapter(adapter); // TODO removal can go wrong } }