ByteArrayInputStream bais = new ByteArrayInputStream
(data.getData(), data.getOffset(), data.getSize());
try {
ObjectInputStream ois = new ObjectInputStream(bais);
Object object = ois.readObject();
assert ois.available() == 0;
/* Set SyncDataSet's SyncProcessor field after de-serialization. */
ProcessorMetadata<SyncDataSet> metadata =
(ProcessorMetadata<SyncDataSet>) object;
for (SyncDataSet dataSet : metadata.getDataSets()) {