code: private Handler<AsyncResult<Void>> createUndeployHandler(final Message<JsonObject> message) {
      return new Handler<AsyncResult<Void>>() {
        @Override
        public void handle(AsyncResult<Void> result) {
          if (result.failed()) {
            message.reply(new JsonObject().putString("status", "error").putString("message", result.cause().getMessage()));
          } else {
            message.reply(new JsonObject().putString("status", "ok"));
          }
        }
      };
    }
docs: Creates a platform undeploy handler.