code: private boolean importModule(File file) throws CmsException {
  
          m_logStream.println("Trying to import module from " + file.getAbsolutePath());
          I_CmsReport report = new CmsPrintStreamReport(
              m_logStream,
              OpenCms.getWorkplaceManager().getWorkplaceLocale(getCmsObject()),
              false);
          OpenCms.getModuleManager().replaceModule(m_cms, file.getAbsolutePath(), report);
          file.delete();
          if (report.hasError() || report.hasWarning()) {
              m_logStream.println("Import failed, see opencms.log for details");
              return false;
          }
          return true;
      }
docs: Imports a module from the given zip file.<p>
  
  @param file the module file to import
  @throws CmsException if soemthing goes wrong
  
  @return true if there were no errors during the import