private void endSerializer() {
    Class c = getClassFromStack();
    if (!(DataSerializer.class.isAssignableFrom(c))) {
      throw new CacheXmlException(
          String.format(
              "The class %s presented for serializer registration does not extend DataSerializer and cannot be registered.",
              c.getName()));
    }

    SerializerCreation sr = (SerializerCreation) stack.peek();
    sr.registerSerializer(c);
  }
Ending the serialization registration should leave us with a class name on the stack. We will
call the DataSerializer.register() with the class once we find it.
geode-core/src/main/java/org/apache/geode/internal/cache/xmlcache/CacheXmlParser.java