code: public final void setApplicationName(String applicationName) {
          synchronized (lock) {
              if (applicationName == null) {
                  serviceProperties.remove(APPLICATION_NAME);
                  bundleAnalysingComponentInstantiationListener = null;
              } else {
                  serviceProperties.put(APPLICATION_NAME, applicationName);
                  bundleAnalysingComponentInstantiationListener =
                      new BundleAnalysingComponentInstantiationListener(bundleContext, injectionSource, factoryTracker);
              }
  
              if (serviceRegistration != null) {
                  serviceRegistration.setProperties(serviceProperties);
              }
          }
      }
docs: Sets the application nane.
  
  @param applicationName a {@link java.lang.String} object.