code: protected void deactivate(ComponentContext cc) {
          // Clean JmxInitializer
          LibertyApplicationBusFactory busFactory = LibertyApplicationBusFactory.getInstance();
          busFactory.unregisterApplicationBusListener(jmxInitializer);
  
          // Unregister all existing services for Delayed MBean
          // And clean up local variables.
          if (null != serviceTable) {
              Enumeration<String> keys = serviceTable.keys();
              while (keys.hasMoreElements()) {
                  String k = keys.nextElement();
                  ServiceRegistration<?> r = serviceTable.get(k);
                  if (null != r) {
                      r.unregister();
                  }
              }
              serviceTable.clear();
          }
      }
docs: /*
  Called by Declarative Services to deactivate service