resetRemoteStatus();
}
if (sendNotification) {
// this one should be fired _always_
eventBus().post(new RepositoryEventProxyModeSet(this, oldProxyMode, proxyMode, cause));
if (proxyMode != null && !proxyMode.equals(oldProxyMode)) {
// this one should be fired on _transition_ only
eventBus().post(new RepositoryEventProxyModeChanged(this, oldProxyMode, proxyMode, cause));
}