private void endSocketFactory() {
    Declarable d = createDeclarable();
    if (!(d instanceof SocketFactory)) {
      throw new CacheXmlException(String.format("A %s is not an instance of a %s",
          d.getClass().getName(), "SocketFactory"));

    }
    Object a = stack.peek();
    if (a instanceof PoolFactory) {
      PoolFactory poolFactory = (PoolFactory) a;
      poolFactory.setSocketFactory((SocketFactory) d);
    } else {
      throw new CacheXmlException(String.format("A %s must be defined in the context of a pool.",
          SOCKET_FACTORY));
    }

  }
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