code: private static void processFilters(List<SpanFilter> filters, String pattern, String childNames, Class<? extends SpanFilter> impl) {
  
          final String methodName = "processFilters";
  
          try {
              SpanFilterType type = SpanFilterType.INCOMING;
              boolean ignoreCase = false;
              boolean regex = true;
  
              SpanFilter filter = (SpanFilter) Class.forName(impl.getName()).getConstructor(String.class, SpanFilterType.class, boolean.class,
                                                                                            boolean.class).newInstance(pattern, type,
                                                                                                                       ignoreCase, regex);
  
              if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                  Tr.debug(tc, methodName, "filter " + filter);
              }
  
              filters.add(filter);
          } catch (ClassNotFoundException | IllegalAccessException | InstantiationException | NoSuchMethodException | SecurityException | IllegalArgumentException
                          | InvocationTargetException e) {
              throw new IllegalStateException(e);
          }
      }
docs: Check the configuration for filters of a particular type.
  
  @param filters     The resulting list of filters.
  @param map         Configuration properties.
  @param configAdmin Service to get child configurations.
  @param childNames  The name of the configuration element to check for.
  @param impl        The filter class to instantiate if an element is found.