code: @Override
      public void notLeader() {
          LOG.warn("Server instance with server id {} is removed as leader", serverId);
          serviceState.becomingPassive();
          for (ActiveStateChangeHandler handler: activeStateChangeHandlers) {
              try {
                  handler.instanceIsPassive();
              } catch (AtlasException e) {
                  LOG.error("Error while reacting to passive state.", e);
              }
          }
          serviceState.setPassive();
      }
docs: Call all registered {@link ActiveStateChangeHandler}s on becoming passive instance.