@Override public void run() { // Need to check it again in case that executor triggered by other thread already finished computation in the meantime if (needRefreshRegistration(registrationUri, resolvedDeployment)) { sendRegistrationEvent(resolvedDeployment); } } };