docs: private void addCamelContextToRegistar(Endpoint endpoint) {
          Bus bus = null;
          try {
              if (endpoint instanceof CxfEndpoint) {
                  // getBus creates a new one if none
                  bus = ((CxfEndpoint) endpoint).getBus();
  
              } else if (endpoint instanceof CxfRsEndpoint) {
                  JAXRSServerFactoryBean jaxrsServerFactoryBean = CamelContextHelper.lookup(endpoint.getCamelContext(), ((CxfRsEndpoint) endpoint).getBeanId(), JAXRSServerFactoryBean.class);
                  if (jaxrsServerFactoryBean != null) {
                      bus = jaxrsServerFactoryBean.getBus();
                  }
              }
          } catch (Exception e) {
              // nothing special
          }
          if (bus != null) {
              log.debug("Linking bus={} with {}" + bus.getId(), endpoint.getCamelContext());
              locatorRegistrar.getRegistrar(bus).setCamelContext(endpoint.getCamelContext());
          }
      }