public class JavaSerializationDeserializer implements Deserializer {
@Override
public void deserialize(byte[] data, LuceneWorksBuilder hydrator) {
Message message = SerializationHelper.toInstance( data, Message.class );
final ConversionContext conversionContext = new ContextualExceptionBridgeHelper();
for ( Operation operation : message.getOperations() ) {
if ( operation instanceof OptimizeAll ) {
hydrator.addOptimizeAll();
}
else if ( operation instanceof PurgeAll ) {