docs: protected void updateResourceType(Window window) {
  
          if (!((CmsModuleRow)m_table.getValue()).equals(
              new CmsModuleRow(OpenCms.getModuleManager().getModule(m_type.getModuleName())))) {
              CmsModule newModule = ((CmsModuleRow)m_table.getValue()).getModule().clone();
              CmsModule oldModule = OpenCms.getModuleManager().getModule(m_type.getModuleName()).clone();
  
              m_type.setModuleName(newModule.getName());
  
              List<I_CmsResourceType> newTypes = Lists.newArrayList(newModule.getResourceTypes());
              newTypes.add(m_type);
              newModule.setResourceTypes(newTypes);
              List<CmsExplorerTypeSettings> oldSettings = new ArrayList<CmsExplorerTypeSettings>(
                  oldModule.getExplorerTypes());
              CmsExplorerTypeSettings settings = new CmsExplorerTypeSettings();
  
              settings.setName(m_type.getTypeName());
              settings = oldSettings.get(oldSettings.indexOf(settings));
              oldSettings.remove(settings);
              List<CmsExplorerTypeSettings> newSettings = new ArrayList<CmsExplorerTypeSettings>(
                  newModule.getExplorerTypes());
              newSettings.add(settings);
              oldModule.setExplorerTypes(oldSettings);
              newModule.setExplorerTypes(newSettings);
  
              List<I_CmsResourceType> oldTypes = Lists.newArrayList(oldModule.getResourceTypes());
              oldTypes.remove(m_type);
              oldModule.setResourceTypes(oldTypes);
              if (m_schemaOK) {
                  List<String> oldResources = Lists.newArrayList(oldModule.getResources());
                  oldResources.remove(m_typeXML.getSchema());
                  oldModule.setResources(oldResources);
  
                  List<String> newResources = Lists.newArrayList(newModule.getResources());
                  newResources.add(m_typeXML.getSchema());
                  newModule.setResources(newResources);
  
              }
              try {
                  OpenCms.getModuleManager().updateModule(A_CmsUI.getCmsObject(), oldModule);
                  OpenCms.getModuleManager().updateModule(A_CmsUI.getCmsObject(), newModule);
                  OpenCms.getResourceManager().initialize(A_CmsUI.getCmsObject());
                  OpenCms.getWorkplaceManager().removeExplorerTypeSettings(oldModule);
                  OpenCms.getWorkplaceManager().addExplorerTypeSettings(newModule);
                  OpenCms.getWorkplaceManager().initialize(A_CmsUI.getCmsObject());
  
              } catch (CmsException e) {
                  LOG.error("Unable to move resource type", e);
              }
  
          }
          window.close();
          A_CmsUI.get().reload();
      }