GatewayReceiver createGatewayReceiver(Cache cache,
      GatewayReceiverConfig gatewayReceiverConfig) {
    GatewayReceiverRealizer receiverRealizer = new GatewayReceiverRealizer();
    receiverRealizer.create(gatewayReceiverConfig, (InternalCache) cache);

    return cache.getGatewayReceivers().iterator().next();
  }
The function to a create GatewayReceiver using given configuration parameters.
geode-gfsh/src/main/java/org/apache/geode/management/internal/cli/functions/GatewayReceiverCreateFunction.java