code: private IGatewayLink createGatewayLink(String gatewayId) throws PublishingException {
          try {
              GatewayBean gateway = storage.getGateway(gatewayId);
              if (gateway == null) {
                  throw new GatewayNotFoundException();
              }
              IGatewayLink link = gatewayLinkFactory.create(gateway);
              return link;
          } catch (GatewayNotFoundException e) {
              throw e;
          } catch (Exception e) {
              throw new PublishingException(e.getMessage(), e);
          }
      }
docs: Creates a gateway link given a gateway id.
  @param gatewayId