code: public void deactivateApp(int appId) {
  		getResourceFactory().getApiResource("/app/" + appId + "/deactivate")
  				.entity(new Empty(), MediaType.APPLICATION_JSON_TYPE).post();
  	}
docs: Deactivates the app with the given id. This removes the app from the app
  navigator, and disables insertion of new items.
  
  @param appId
  The id of the app to deactivate