XMLPipelineContext context = dynamicProcess.getPipelineContext();
// determine if we are in error recovery mode before the superclasses
// endElement is invoked as the error recovery mode is reset whenever
// the attempt operation process is removed from the pipeline.
boolean inErrorRecoveryMode = context.inErrorRecoveryMode();
TryModel model = (TryModel) object;
model.endBlock(this.element);
// if attempt succeeded (ie the pipeline was not in error recovery