@Override
    public void toData(DataOutput dataOutput) throws IOException {
      DataSerializer.writeByteArray(data, dataOutput);
    }
This class makes sure that instantatiors are persisted to disk and can be recovered.
geode-core/src/integrationTest/java/org/apache/geode/DiskInstantiatorsJUnitTest.java