@SuppressWarnings("deprecation")
final ClientConnectionManager connectionManager = cachedBoxClient.getClientConnectionManager();
if (connectionManager != null) {
LOG.debug("Closing connections for {}", cachedBoxClient);
connectionManager.shutdown();
} else {
LOG.debug("ConnectionManager not created for {}", cachedBoxClient);
}
}
LOG.debug("Shutdown successful for {}", cachedBoxClient);