if (deploymentMD != null) {
if (deploymentMD.getRecovery() != null &&
transactionIntegrationValue.getValue() != null &&
transactionIntegrationValue.getValue().getRecoveryRegistry() != null) {
XAResourceRecoveryRegistry rr = transactionIntegrationValue.getValue().getRecoveryRegistry();
for (XAResourceRecovery recovery : deploymentMD.getRecovery()) {
rr.removeXAResourceRecovery(recovery);
}
}
}
super.stop(stopContext);