}
}
public void undeploy(WebApplicationDeployment<IVirtualDirectory> unit) {
if (unit.getDeployer() != this)
throw new VirtualArtifactDeployerException(this, unit.getDeployed(), "This deployer did not deploy this artifact");
if (!(unit.getDeploymentStructure() instanceof IVirtualDirectory)) {
throw (VirtualArtifactDeployerException) this.fireEvent(unit, Type.Error,
new VirtualArtifactDeployerException(this, unit.getDeployed(), "This unit has not yet been deployed")
).getThrowable();
}
ClassLoader original = Thread.currentThread().getContextClassLoader();
try {