if (deploymentMD != null &&
deploymentMD.getRecovery() != null &&
transactionIntegrationValue.getValue() != null &&
transactionIntegrationValue.getValue().getRecoveryRegistry() != null) {
XAResourceRecoveryRegistry rr = transactionIntegrationValue.getValue().getRecoveryRegistry();
for (XAResourceRecovery recovery : deploymentMD.getRecovery()) {
if (recovery != null) {
try {
recovery.shutdown();
} catch (Exception e) {
ConnectorLogger.SUBSYSTEM_DATASOURCES_LOGGER.error("Error during recovery shutdown", e);
} finally {
rr.removeXAResourceRecovery(recovery);
}
}
}
}