code: @Override
      public void onReceive(Object message) throws Exception {
          final Class<?> klass = message.getClass();
          final ActorRef self = self();
          final ActorRef sender = sender();
  
          if (CreateBridge.class.equals(klass)) {
              onCreateBridge((CreateBridge) message, self, sender);
          } else if (BridgeStateChanged.class.equals(klass)) {
              onBridgeStateChanged((BridgeStateChanged) message, self, sender);
          }
  
      }
docs: /*
  Events