code: protected void registerSelf() {
          publishSelf();
          serviceRegistry.get().registerService(getServiceDescription());
          serviceRegistry.get().subscribe((pair, err) -> {
              serviceEvent(pair.car(), pair.cdr(), err);
          });
          heartBeat();
          Log.Info(this, "registered at serviceRegistry.");
      }
docs: register at service registry