code: public org.osgi.framework.Filter createOsgiFilter()
          throws IllegalArgumentException {
          org.osgi.framework.Filter filter;
          try {
              String filterString = String.format("(&(%s=%s)(%s=%s))", APPLICATION_NAME, applicationName,
                  OBJECTCLASS, FilterFactory.class.getName());
              LOGGER.debug("createOsgiFilter={} for application {}", filterString, applicationName);
              filter = bundleContext.createFilter(filterString);
          } catch (InvalidSyntaxException e) {
              throw new IllegalArgumentException("applicationName can not contain '*', '(' or ')' : " + applicationName,
                  e);
          }
          return filter;
      }
docs: <p>createOsgiFilter.</p>
  
  @return a {@link org.osgi.framework.Filter} object.
  @throws java.lang.IllegalArgumentException if any.