code: @SuppressWarnings("unchecked")
      protected void processInitialLogHandlerServices() throws InvalidSyntaxException {
          ServiceReference<LogHandler>[] servRefs = (ServiceReference<LogHandler>[])
                          bundleContext.getServiceReferences(LogHandler.class.getName(), null);
  
          if (servRefs != null) {
              for (ServiceReference<LogHandler> servRef : servRefs) {
                  setLogHandler(servRef);
              }
          }
      }
docs: Search for and add any LogHandler ServiceReferences that were already started
  by the time we registered our ServiceListener.