code: private void preRegisterMBeanServerPipelineService(final BundleContext systemContext) {
          PlatformMBeanServerBuilder.addPlatformMBeanServerBuilderListener(new PlatformMBeanServerBuilderListener() {
              @Override
              @FFDCIgnore(IllegalStateException.class)
              public void platformMBeanServerCreated(final MBeanServerPipeline pipeline) {
                  if (pipeline != null) {
                      final Hashtable<String, String> svcProps = new Hashtable<String, String>();
                      try {
                          AccessController.doPrivileged(new PrivilegedAction<Void>() {
                              @Override
                              public Void run() {
                                  systemContext.registerService(MBeanServerPipeline.class.getName(), pipeline, svcProps);
                                  return null;
                              }
                          });
                      } catch (IllegalStateException ise) { /* This instance of the system bundle is no longer valid. Ignore it. */
                      }
                  }
              }
          });
      }
docs: Delayed registration of the platform MBeanServerPipeline in the OSGi registry.
  
  @param systemContext The framework system bundle context