@Override
  public byte[] getSerializedValue() {
    byte[] result = getRawBytes();
    if (!isSerialized()) {
      // The object is a byte[]. So we need to make it look like a serialized byte[] in our result
      result = EntryEventImpl.serialize(result);
    }
    return result;
  }
This method should only be called on uncompressed objects

@return byte array of the StoredObject value.
geode-core/src/main/java/org/apache/geode/internal/offheap/OffHeapStoredObject.java