private void stopListeningForDataSerializerChanges() {
    if (regListener != null) {
      InternalDataSerializer.removeRegistrationListener(regListener);
    }
  }
Write the specified DataSerializer to the file.
geode-core/src/main/java/org/apache/geode/internal/cache/DiskInitFile.java