code: private String getModuleFromClass(Class<?> klass, Map<String, ModuleProperties> moduleMap) {
          String file = getClassFileLocation(klass);
          if (tc.isDebugEnabled()) {
              Tr.debug(tc, "File name : " + file);
          }
          String moduleName = null;
          for (Map.Entry<String, ModuleProperties> entry : moduleMap.entrySet()) {
              URL location = entry.getValue().getLocation();
              String filePath = location.getFile();
              if (tc.isDebugEnabled()) {
                  Tr.debug(tc, "location : " + filePath);
              }
  
              if (location.getProtocol().equals("file") && file.startsWith(filePath)) {
                  moduleName = entry.getKey();
                  if (tc.isDebugEnabled()) {
                      Tr.debug(tc, "module name from the list  : " + moduleName);
                  }
                  break;
              }
          }
          if (moduleName == null) {
              moduleName = file;
              if (tc.isDebugEnabled()) {
                  Tr.debug(tc, "no match. use filename as module name : " + moduleName);
              }
          }
          return moduleName;
      }
docs: Identify the module name from the class. If the class exists in the jar file, return war file name
  if it is located under the war file, otherwise returning jar file name.