@Override
  public void fromData(DataInput in,
      DeserializationContext context) throws IOException, ClassNotFoundException {
    // fix for bug 38309
    byte[] bytes = DataSerializer.readByteArray(in);
    valueSize = bytes.length;
    value = bytes;
  }
Return current value regardless of whether it is serialized or deserialized: if it was
serialized than it is a byte[], otherwise it is not a byte[].
geode-core/src/main/java/org/apache/geode/internal/cache/VMCachedDeserializable.java