code: @Override
      public void actionCommit() {
  
          if (!hasCommitErrors()) {
              //check if we have to update an existing module or to create a new one
              Set<String> moduleNames = OpenCms.getModuleManager().getModuleNames();
              if (moduleNames.contains(m_module.getName())) {
                  // update the module information
                  try {
                      OpenCms.getModuleManager().updateModule(getCms(), m_module);
                  } catch (CmsException e) {
                      addCommitError(e);
                  }
              } else {
                  try {
                      m_module = createModuleFolders((CmsModule)m_module.clone());
                      OpenCms.getModuleManager().addModule(getCms(), m_module);
                  } catch (CmsException e) {
                      addCommitError(e);
                  }
              }
          }
  
          if (!hasCommitErrors()) {
              // refresh the list
              Map<?, ?> objects = (Map<?, ?>)getSettings().getListObject();
              if (objects != null) {
                  objects.remove(CmsModulesList.class.getName());
              }
          }
      }
docs: Commits the edited module.<p>