Runnable wait = new Runnable() {
@Override
public void run() {
ServiceSynchronizationManager mgr = ServiceSynchronizationManager.INSTANCE;
if (!mgr.waitForServiceRemove(serviceName,
DestinationUtils.destinationWaitTimeout())) {
log.warn("Timed out waiting for " + name + " pointer to stop.");
}
if (mgr.hasService(finalGlobalName) &&