@Override
    public void retireApi(Api api) throws PublishingException, GatewayAuthenticationException {
        if (!isGatewayUp()) {
            throw new PublishingException(Messages.i18n.format("RestGatewayLink.GatewayNotRunning")); //$NON-NLS-1$
        }
        getClient().retire(api.getOrganizationId(), api.getApiId(), api.getVersion());
    }
@see io.apiman.manager.api.gateway.IGatewayLink#retireApi(io.apiman.gateway.engine.beans.Api)
manager/api/gateway/src/main/java/io/apiman/manager/api/gateway/rest/RestGatewayLink.java