@Override
    public IGatewayLink create(GatewayBean gateway) {
        if (gateway.getType() == GatewayType.REST) {
            return new RestGatewayLink(gateway);
        } else {
            throw new IllegalArgumentException();
        }
    }
@ 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)