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

    }
    PartitionAttributesImpl pai = peekPartitionAttributesImpl(PARTITION_ATTRIBUTES);
    pai.addPartitionListener((PartitionListener) d);
  }
When a <code>partition-listener</code> element is finished, the {@link Parameter}s and class
names are popped off the stack. The <code>PartitionListener</code> is instantiated and
initialized with the parameters, if appropriate.
geode-core/src/main/java/org/apache/geode/internal/cache/xmlcache/CacheXmlParser.java