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