.produceCasProcessorErrorHandling();
CasProcessorMaxRestarts maxRestart = CpeDescriptorFactory.produceCasProcessorMaxRestarts();
maxRestart.setRestartCount(30);
maxRestart.setAction("terminate");
errorHandling.setMaxConsecutiveRestarts(maxRestart);
CasProcessorTimeout timeout = CpeDescriptorFactory.produceCasProcessorTimeout();
timeout.set(100000);
errorHandling.setTimeout(timeout);
CasProcessorErrorRateThreshold errorThreshold = CpeDescriptorFactory
.produceCasProcessorErrorRateThreshold();
errorThreshold.setMaxErrorCount(100);
errorThreshold.setMaxErrorSampleSize(1000);