@Override
    public void publishApi(Api api, IAsyncResultHandler<Void> handler) {
        synchronized (mutex) {
            String apiIdx = getApiIndex(api);
            getMap().put(apiIdx, api);
        }
        handler.handle(AsyncResultImpl.create((Void) null));
    }
@see io.apiman.gateway.engine.IRegistry#publishApi(io.apiman.gateway.engine.beans.Api, io.apiman.gateway.engine.async.IAsyncResultHandler)
gateway/engine/core/src/main/java/io/apiman/gateway/engine/impl/InMemoryRegistry.java