code: private CmsModule getModuleForFileName(String fileName) {
  
          String moduleName = fileName;
          if (fileName.endsWith(SUFFIX)) {
              moduleName = fileName.substring(0, fileName.length() - SUFFIX.length());
          }
          CmsModule result = OpenCms.getModuleManager().getModule(moduleName);
          return result;
      }
docs: Gets the module which corresponds to the given virtual file name.<p>
  
  @param fileName the file name
  
  @return the module which corresponds to the given file name