@Override
    public IGatewayLink create(GatewayBean gateway) {
        if (gateway.getType() == GatewayType.REST) {
            return new RestGatewayLink(gateway);
        } else {
            throw new IllegalArgumentException();
        }
    }
@see io.apiman.manager.api.gateway.IGatewayLinkFactory#create(io.apiman.manager.api.beans.gateways.GatewayBean)
manager/api/gateway/src/main/java/io/apiman/manager/api/gateway/GatewayLinkFactory.java