private static int getEntrySize(EntryEventImpl eei) {
    @Unretained
    final Object v = eei.getRawNewValue();
    if (v instanceof CachedDeserializable) {
      return ((Sizeable) v).getSizeInBytes();
    }
    return 0;
  }
Get the serialized size of an {@code EntryEventImpl}

@param eei the entry from whcih to fetch the size
@return the size of the serialized entry
geode-core/src/main/java/org/apache/geode/internal/cache/PartitionedRegion.java