code: public void shutdownApplication( String applicationName ) throws ManagementWsException {
  		this.logger.finer( "Removing application " + applicationName + "..." );
  
  		WebResource path = this.resource
  					.path( UrlConstants.APPLICATIONS )
  					.path( applicationName )
  					.path( "shutdown" );
  
  		ClientResponse response = this.wsClient.createBuilder( path ).post( ClientResponse.class );
  		String text = response.getEntity( String.class );
  		this.logger.finer( text );
  		if( Family.SUCCESSFUL != response.getStatusInfo().getFamily())
  			throw new ManagementWsException( response.getStatusInfo().getStatusCode(), text );
  	}
docs: Shutdowns an application.
  @param applicationName the application name
  @throws ManagementWsException if a problem occurred with the applications management