@Override
 protected void stopInternal() throws LifecycleException {
   try {
     server.stop();
   } catch (Throwable e) {
     throw new LifecycleException("Could not invoke stop on: " + server, e);
   }
 }
 @Override
 public void close() {
   for (File deployment : deployments) {
     try {
       server.undeploy(deployment);
     } catch (Exception e) {
       ROOT_LOGGER.failedToUndeploy(e, deployment);
     }
   }
   server.stop();
   for (File tempFile : tempFiles) {
     tempFile.delete();
   }
 }