{
assembler.destroyApplication(deployment.jarPath);
}
catch (final UndeployException e)
{
throw new DeploymentException("Error in undeployment of " + archive.getName(), e);
}
catch (final NoSuchApplicationException e)
{
throw new DeploymentException("Application was not deployed; cannot undeploy: " + archive.getName(), e);
}
}