docs: @Override
      public void actionCommit() {
  
          List errors = new ArrayList();
  
          try {
              // get the correct module
              String moduleName = getParamModule();
              CmsModule module = (CmsModule)OpenCms.getModuleManager().getModule(moduleName).clone();
              // get the current dependencies from the module
              List oldDependencies = module.getDependencies();
              // now loop through the dependencies and create the new list of dependencies
              List newDependencies = new ArrayList();
              Iterator i = oldDependencies.iterator();
              while (i.hasNext()) {
                  CmsModuleDependency dep = (CmsModuleDependency)i.next();
                  if (!dep.getName().equals(m_dependency.getName())) {
                      newDependencies.add(dep);
                  }
              }
              // update the dependencies
              newDependencies.add(m_dependency);
              module.setDependencies(newDependencies);
              // update the module
              OpenCms.getModuleManager().updateModule(getCms(), module);
              // refresh the list
              Map objects = (Map)getSettings().getListObject();
              if (objects != null) {
                  objects.remove(CmsModulesList.class.getName());
                  objects.remove(CmsModulesDependenciesList.class.getName());
              }
          } catch (CmsConfigurationException ce) {
              errors.add(ce);
          } catch (CmsSecurityException se) {
              errors.add(se);
          }
  
          // set the list of errors to display when saving failed
          setCommitErrors(errors);
      }