private IGatewayLink createGatewayLink(String gatewayId) throws PublishingException {
        try {
            GatewayBean gateway = storage.getGateway(gatewayId);
            if (gateway == null) {
                throw new GatewayNotFoundException();
            }
            return gatewayLinkFactory.create(gateway);
        } catch (GatewayNotFoundException e) {
            throw e;
        } catch (Exception e) {
            throw new PublishingException(e.getMessage(), e);
        }
    }
Creates a gateway link given a gateway id.
manager/api/rest-impl/src/main/java/io/apiman/manager/api/service/ActionService.java