code: public synchronized void updateModule(CmsObject cms, CmsModule module)
      throws CmsRoleViolationException, CmsConfigurationException {
  
          // check for module manager role permissions
          OpenCms.getRoleManager().checkRole(cms, CmsRole.DATABASE_MANAGER);
  
          CmsModule oldModule = m_modules.get(module.getName());
  
          if (oldModule == null) {
              // module is not currently configured, no update possible
              throw new CmsConfigurationException(Messages.get().container(Messages.ERR_OLD_MOD_ERR_1, module.getName()));
          }
  
          if (LOG.isInfoEnabled()) {
              LOG.info(Messages.get().getBundle().key(Messages.LOG_MOD_UPDATE_1, module.getName()));
          }
  
          // indicate that the version number was recently updated
          module.getVersion().setUpdated(true);
  
          // initialize (freeze) the module
          module.initialize(cms);
  
          // replace old version of module with new version
          m_modules.put(module.getName(), module);
  
          try {
              I_CmsModuleAction moduleAction = oldModule.getActionInstance();
              // handle module action instance if initialized
              if (moduleAction != null) {
                  moduleAction.moduleUpdate(module);
                  // set the old action instance
                  // the new action instance will be used after a system restart
                  module.setActionInstance(moduleAction);
              }
          } catch (Throwable t) {
              LOG.error(Messages.get().getBundle().key(Messages.LOG_INSTANCE_UPDATE_ERR_1, module.getName()), t);
          }
  
          // initialize the export points
          initModuleExportPoints();
  
          // update the configuration
          updateModuleConfiguration();
  
          // reinit the workplace CSS URIs
          if (!module.getParameters().isEmpty()) {
              OpenCms.getWorkplaceAppManager().initWorkplaceCssUris(this);
          }
      }
docs: Updates a already configured module with new values.<p>
  
  @param cms must be initialized with "Admin" permissions
  @param module the module to update
  
  @throws CmsRoleViolationException if the required module manager role permissions are not available
  @throws CmsConfigurationException if a module with this name is not available for updating