// Discard all the changes made to the context since the recovery
// point was created.
context.removeRecoveryPoint(recoveryPoint, false);
// Exit error recovery mode so that the next block can be tried.
context.exitErrorRecoveryMode();
// There was an error in the content so discard the dependencies.
dependencyContext.clearDependencies();
}