code: @Override
      public void addServiceManagementBean(ServiceContext serviceContext) {
          GatewayManagementBean gatewayManagementBean = getLocalGatewayManagementBean();
  
          ServiceManagementBean serviceManagementBean = serviceManagmentBeanFactory.newServiceManagementBean(
                  serviceContext.getServiceType(), gatewayManagementBean, serviceContext);
  
          ServiceManagementBean tempBean = serviceManagementBeans.putIfAbsent(serviceContext, serviceManagementBean);
          if (tempBean == null) {
              // A bean was not already created for this service
              for (ManagementServiceHandler handler : managementServiceHandlers) {
                  handler.addServiceManagementBean(serviceManagementBean);
              }
          }
      }
docs: Create a ServiceManagementBean for a resource address on the local Gateway instance.
  <p/>
  XXX We need to do something more if we're going to support some idea of storing services from another Gateway instance in
  the same repository, as we won't generally have ServiceContext to work with (since the other instance will be in a
  different process, perhaps on a different machine.)