@Override
    public void publishApi(Api api, IAsyncResultHandler<Void> handler) {
        super.publishApi(api, result -> {
           if (result.isSuccess()) {
               publish(api);
           }
           handler.handle(result);
           rewrite();
        });
    }
@author Marc Savy {@literal <marc@rhymewithgravy.com>}
gateway/test/src/test/java/io/apiman/gateway/test/junit/vertx3/ApiToFileRegistry.java