126127128129130131132133134135136137138139
public void stop() { injector.transform(new Function<Injector, Object>() { @Nullable @Override public Object apply(@Nullable Injector input) { Raft instance = null; if (input != null) { instance = input.getInstance(Raft.class); instance.stop(); } return instance; } }); }