private static void bindFailureDetector(Binder binder, boolean coordinator)
{
// TODO: this is a hack until the coordinator module works correctly
if (coordinator) {
binder.install(new FailureDetectorModule());
binder.bind(NodeResource.class).in(Scopes.SINGLETON);
}
else {
binder.bind(FailureDetector.class).toInstance(new FailureDetector() {
@Override