@AfterClass public static void teardown() throws Exception { if (server != null) { try { server.undeployConfig(); } catch (Throwable t) { logger.error("Failed to undeploy application", t); } try { server.stop(); } catch (Throwable t) { logger.error("Failed to stop server", t); } } }