boolean gatewayReceiverExists(Cache cache) {
    return cache.getGatewayReceivers() != null && !cache.getGatewayReceivers().isEmpty();
  }
The function to a create GatewayReceiver using given configuration parameters.
geode-gfsh/src/main/java/org/apache/geode/management/internal/cli/functions/GatewayReceiverCreateFunction.java