docs: private <T> List<ServiceReference> getAllServiceRefs(Class<T> klass) {
          ServiceReference[] importDeclarationsRef;
          try {
              importDeclarationsRef = context.getAllServiceReferences(klass.getName(), null);
          } catch (InvalidSyntaxException e) {
              LOG.error("Failed to retrieved services " + klass.getName(), e);
              return new ArrayList<ServiceReference>();
          }
          if (importDeclarationsRef != null) {
              return Arrays.asList(importDeclarationsRef);
          }
          return new ArrayList<ServiceReference>();
      }