code: @Override
  	public Response shutdownApplication( String applicationName ) {
  
  		this.logger.fine( "Request: shutdown application " + applicationName + "." );
  		Response result = Response.ok().build();
  		try {
  			ManagedApplication ma = this.manager.applicationMngr().findManagedApplicationByName( applicationName );
  			if( ma == null ) {
  				result = handleError(
  						Status.NOT_FOUND,
  						new RestError( REST_INEXISTING, application( applicationName )),
  						lang( this.manager )).build();
  
  			} else {
  				this.manager.instancesMngr().undeployAll( ma, null );
  			}
  
  		} catch( Exception e ) {
  			result = handleError(
  					Status.FORBIDDEN,
  					new RestError( REST_MNGMT_APP_SHUTDOWN_ERROR, e ),
  					lang( this.manager )).build();
  		}
  
  		return result;
  	}
docs: /*
  (non-Javadoc)
  @see net.roboconf.dm.internal.rest.api.IManagementWs
  #shutdownApplication(java.lang.String)