code: private void registerModelAdapter() {
          Dictionary<String, Object> properties = createResourceToModelAdapterProperties();
          String serviceClassName = AdapterFactory.class.getName();
          this.resourceToModelAdapterRegistration = this.context.registerService(serviceClassName, this.adapter, properties);
      }
docs: {@link BundleContext#registerService(String, Object, Dictionary) Registers}
  the {@link ResourceToModelAdapter}, i.e. publishes it as an OSGi service.