private void undeployWebapps(String[] webappFileNames,
Map<String, WebApplication> webapps) throws AxisFault {
for (String webappFileName : webappFileNames) {
WebApplication webapp = webapps.get(webappFileName);
try {
webapp.undeploy();
webapps.remove(webappFileName);
} catch (CarbonException e) {
handleException("Could not delete webapp " + webapp, e);
}
}