private GatewaySenderFactory peekGatewaySender(String dependentElement) {
    Object a = stack.peek();
    if (!(a instanceof GatewaySenderFactory)) {
      throw new CacheXmlException(
          String.format("A %s must be defined in the context of gateway-sender.",
              dependentElement));
    }
    return (GatewaySenderFactory) a;
  }
Add a marker string to look for when in endPartitionProperties

@param localOrGlobal either the string LOCAL_PROPERTIES or GLOBAL_PROPERTIES
geode-core/src/main/java/org/apache/geode/internal/cache/xmlcache/CacheXmlParser.java