code: private synchronized AppModuleName addAppModuleNames(String appName, String moduleAndAppName) {
          HashSet<String> moduleNames = null;
          String moduleName = moduleAndAppName.split("#")[1];
          if (appModules.containsKey(appName)) {
              moduleNames = (HashSet<String>) appModules.get(appName);
              moduleNames.add(moduleName);
          } else {
              moduleNames = new HashSet<String>();
              moduleNames.add(moduleName);
              appModules.put(appName, moduleNames);
          }
  
          if (tc.isDebugEnabled())
              Tr.debug(tc, "addAppModuleNames(): modules added = " + appModules.toString() + " for app: " + appName);
  
          AppModuleName retVal = new AppModuleName();
          retVal.appName = appName;
          retVal.moduleName = moduleName;
          return retVal;
      }
docs: /*
  Store module names for the app