Added serialization to ProcessorExample.