protected void stopWebApp(Deployment deployment) throws Exception {
        WebDeploymentController context;
        try {
            context = deployment.getAttachment(WebDeploymentController.class);
            context.stop();
        } catch (Exception e) {
            throw WSLogger.ROOT_LOGGER.stopContextPhaseFailed(e);
        }
        try {
            context.destroy();
        } catch (Exception e) {
            throw WSLogger.ROOT_LOGGER.destroyContextPhaseFailed(e);
        }
    }
protected void stopWebApp ( Deployment deployment ) throws Exception { WebDeploymentController context ; try { context = deployment . getAttachment ( WebDeploymentController . class ) ; context . stop ( ) ; } catch ( Exception e ) { throw WSLogger . ROOT_LOGGER . stopContextPhaseFailed ( e ) ; } try { context . destroy ( ) ; } catch ( Exception e ) { throw WSLogger . ROOT_LOGGER . destroyContextPhaseFailed ( e ) ; } }
Stops the webapp serving the provided ws deployment

@param deployment
@throws Exception