private static boolean hasChanges(@Nullable AppendMemoryBuffer buffer) {
      return buffer != null && buffer.getBufferPosition() > 0;
    }
private static boolean hasChanges(@Nullable AppendMemoryBuffer buffer)