contextListener.stop(standardContext); } else if (Lifecycle.AFTER_STOP_EVENT.equals(type)) { contextListener.afterStop(standardContext); } else if (DESTROY_EVENT.equals(type) || Lifecycle.AFTER_DESTROY_EVENT.equals(type)) { contextListener.destroy(standardContext); contextListener.afterStop(standardServer);