code: public void actionSave(Locale locale) throws JspException {
  
          try {
              setEditorValues(locale);
              // check if content has errors
              if (!hasValidationErrors()) {
                  // no errors found, write content and copy temp file contents
                  writeContent();
                  commitTempFile();
                  // set the modified parameter
                  setParamModified(Boolean.TRUE.toString());
                  // update the offline search indices
                  OpenCms.getSearchManager().updateOfflineIndexes();
              }
          } catch (CmsException e) {
              showErrorPage(e);
          }
  
      }
docs: Performs the save content action.<p>
  
  This is also used when changing the element language.<p>
  
  @param locale the locale to save the content
  @throws JspException if including the error page fails