code: public void addDynamicService(String serviceInterface, String className) {
          if (dynamicServices.containsKey(serviceInterface)) {
              dynamicServices.get(serviceInterface).add(className);
          }
          else {
              Set<String> classNamesSet = new HashSet<String>();
              classNamesSet.add(className);
              dynamicServices.put(serviceInterface, classNamesSet);
          }
      }
docs: Add Dynamic Java Registered Service class names for each service
  @param serviceInterface
  @param className